kdeui Library API Documentation

KActiveLabel Class Reference

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

#include <kactivelabel.h>

Inheritance diagram for KActiveLabel:

Inheritance graph
[legend]
Collaboration diagram for KActiveLabel:

Collaboration graph
[legend]
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,v 1.10 2004/10/17 11:39:35 coolo Exp

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.

References KActiveLabel().

Referenced by KActiveLabel().

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.

References KActiveLabel().


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 openLink().

Referenced by openLink().


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.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:10:53 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003