kdeui Library API Documentation

KActiveLabel Class Reference

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

#include <kactivelabel.h>

Inheritance diagram for KActiveLabel:

QTextBrowser List of all members.

Public Slots

virtual void openLink (const QString &link)

Public Member Functions

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

Protected Member Functions

virtual void virtual_hook (int id, void *data)
virtual void focusInEvent (QFocusEvent *fe)
virtual void focusOutEvent (QFocusEvent *fe)
virtual void keyPressEvent (QKeyEvent *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.

Author:
Waldo Bastian (bastian@kde.org)
Version:
Id
kactivelabel.h 355245 2004-10-17 11:39:35Z coolo

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::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.

References QRegExp::cap(), QWhatsThis::display(), and QRegExp::exactMatch().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeui Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 8 06:22:46 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003