#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 |
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() [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
◆ focusInEvent()
|
protectedvirtual |
Definition at line 83 of file kactivelabel.cpp.
◆ focusOutEvent()
|
protectedvirtual |
Definition at line 90 of file kactivelabel.cpp.
◆ keyPressEvent()
|
protectedvirtual |
Definition at line 97 of file kactivelabel.cpp.
◆ minimumSizeHint()
TQSize KActiveLabel::minimumSizeHint | ( | ) | const |
Definition at line 114 of file kactivelabel.cpp.
◆ 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.
◆ sizeHint()
TQSize KActiveLabel::sizeHint | ( | void | ) | const |
Definition at line 137 of file kactivelabel.cpp.
◆ virtual_hook()
|
protectedvirtual |
Definition at line 80 of file kactivelabel.cpp.
The documentation for this class was generated from the following files: