• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

Classes | Signals | Public Member Functions | List of all members
LinksLabel Class Reference

#include <linkslabel.h>

Inheritance diagram for LinksLabel:
Inheritance graph
[legend]

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.

void LinksLabel::changed ( )
signal

the structure of links and texts was changed

void LinksLabel::linkClicked ( int  i)
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:
  • linkslabel.h
  • linkslabel.cpp
This file is part of the KDE documentation.
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.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal