#include <kactivelabel.h>
Inherits TQTextBrowser.
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 |
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() [1/2]
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.
◆ KActiveLabel() [2/2]
KActiveLabel::KActiveLabel | ( | const TQString & | text, |
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 34 of file kactivelabel.cpp.
Member Function Documentation
◆ openLink
|
virtualslot |
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: