• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KActiveLabel Class Reference

Label with support for selection and clickable links. More...

#include <kactivelabel.h>

Inheritance diagram for KActiveLabel:

Inheritance graph
[legend]

List of all members.


Public Slots

virtual void openLink (const QString &link)

Public Member Functions

 KActiveLabel (const QString &text, QWidget *parent, const char *name=0)
 KActiveLabel (QWidget *parent, const char *name=0)
QSize minimumSizeHint () const
QSize sizeHint () const

Protected Member Functions

virtual void focusInEvent (QFocusEvent *fe)
virtual void focusOutEvent (QFocusEvent *fe)
virtual void keyPressEvent (QKeyEvent *e)
virtual void virtual_hook (int id, void *data)

Detailed Description

Label with support for selection and clickable links.

openLink() the actions that will be taken when the user clicks on a link.

Author:
Waldo Bastian (bastian@kde.org)
Version:
Id
kactivelabel.h 465272 2005-09-29 09:47:40Z mueller

Definition at line 37 of file kactivelabel.h.


Constructor & Destructor Documentation

KActiveLabel::KActiveLabel ( QWidget *  parent,
const char *  name = 0 
)

Constructor.

It connects the "linkClicked(const QString &)" signal to the "openLink(const QString &)" slot. You will need to disconnect this if you want to process linkClicked() yourself.

Definition at line 28 of file kactivelabel.cpp.

KActiveLabel::KActiveLabel ( const QString &  text,
QWidget *  parent,
const char *  name = 0 
)

Constructor.

It connects the "linkClicked(const QString &)" signal to the "openLink(const QString &)" slot. You will need to disconnect this if you want to process linkClicked() yourself.

Definition at line 34 of file kactivelabel.cpp.


Member Function Documentation

void KActiveLabel::focusInEvent ( QFocusEvent *  fe  )  [protected, virtual]

Definition at line 83 of file kactivelabel.cpp.

void KActiveLabel::focusOutEvent ( QFocusEvent *  fe  )  [protected, virtual]

Definition at line 90 of file kactivelabel.cpp.

void KActiveLabel::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Reimplemented from QTextBrowser.

Definition at line 97 of file kactivelabel.cpp.

QSize KActiveLabel::minimumSizeHint ( void   )  const

Definition at line 114 of file kactivelabel.cpp.

void KActiveLabel::openLink ( const QString &  link  )  [virtual, slot]

Opens link in the default browser.

If link starts with the text "whatsthis:" a QWhatsThis box will appear and then display the rest of the text. The WhatsThis functionality is available since KDE 3.2.

Definition at line 67 of file kactivelabel.cpp.

QSize KActiveLabel::sizeHint ( void   )  const

Definition at line 137 of file kactivelabel.cpp.

void KActiveLabel::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 80 of file kactivelabel.cpp.


The documentation for this class was generated from the following files:
  • kactivelabel.h
  • kactivelabel.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal