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)

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,v 1.7 2003/08/16 19:45:01 coolo Exp

Definition at line 35 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 66 of file kactivelabel.cpp.


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.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:40:36 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003