kig
#include <linkslabel.h>

Classes | |
class | LinksLabelEditBuf |
Signals | |
void | changed () |
void | linkClicked (int i) |
Public Member Functions | |
LinksLabel (QWidget *parent=0) | |
~LinksLabel () | |
void | addLink (const QString &s, LinksLabelEditBuf &buf) |
void | addText (const QString &s, LinksLabelEditBuf &buf) |
void | applyEdit (LinksLabelEditBuf &buf) |
LinksLabelEditBuf | startEdit () |
Detailed Description
this widget shows a line of text, with some links underlined, and emits a signal if one of the links is clicked...
Definition at line 30 of file linkslabel.h.
Constructor & Destructor Documentation
LinksLabel::LinksLabel | ( | QWidget * | parent = 0 | ) |
Definition at line 41 of file linkslabel.cpp.
LinksLabel::~LinksLabel | ( | ) |
Definition at line 63 of file linkslabel.cpp.
Member Function Documentation
void LinksLabel::addLink | ( | const QString & | s, |
LinksLabelEditBuf & | buf | ||
) |
add a link...
Definition at line 86 of file linkslabel.cpp.
void LinksLabel::addText | ( | const QString & | s, |
LinksLabelEditBuf & | buf | ||
) |
add a piece of normal text.
Definition at line 81 of file linkslabel.cpp.
void LinksLabel::applyEdit | ( | LinksLabelEditBuf & | buf | ) |
apply the changes...
This clears the current contents and adds the new data...
Definition at line 95 of file linkslabel.cpp.
|
signal |
the structure of links and texts was changed
|
signal |
the user clicked on a link.
The index is the order in which it was added. E.g. this signal is emitted with arg 0 if the link you first added is clicked, argument 2 for the third link etc.
LinksLabel::LinksLabelEditBuf LinksLabel::startEdit | ( | ) |
start editing, start recording changes in a LinksLabelEditBuf, but don't apply them until after endEdit();
Definition at line 76 of file linkslabel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.