tdeui
KActiveLabel Class Reference
Label with support for selection and clickable links. More...
#include <kactivelabel.h>

Public Slots | |
virtual void | openLink (const TQString &link) |
Public Member Functions | |
KActiveLabel (TQWidget *parent, const char *name=0) | |
KActiveLabel (const TQString &text, TQWidget *parent, const char *name=0) | |
TQSize | minimumSizeHint () const |
TQSize | sizeHint () const |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
virtual void | focusInEvent (TQFocusEvent *fe) |
virtual void | focusOutEvent (TQFocusEvent *fe) |
virtual void | keyPressEvent (TQKeyEvent *e) |
Detailed Description
Label with support for selection and clickable links.
openLink() the actions that will be taken when the user clicks on a link.
- Version:
- $Id$
Definition at line 37 of file kactivelabel.h.
Constructor & Destructor Documentation
KActiveLabel::KActiveLabel | ( | TQWidget * | parent, | |
const char * | name = 0 | |||
) |
Constructor.
It connects the "linkClicked(const TQString &)" signal to the "openLink(const TQString &)" slot. You will need to disconnect this if you want to process linkClicked() yourself.
Definition at line 28 of file kactivelabel.cpp.
Constructor.
It connects the "linkClicked(const TQString &)" signal to the "openLink(const TQString &)" 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::openLink | ( | const TQString & | 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.
The documentation for this class was generated from the following files: