• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Slots | Public Member Functions | Protected Member Functions | List of all members
KActiveLabel Class Reference

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

Author
Waldo Bastian (basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g)
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

void KActiveLabel::openLink ( const TQString &  link)
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:
  • kactivelabel.h
  • kactivelabel.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.