• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kalarm/lib

Label Class Reference

#include <label.h>

Inheritance diagram for Label:

Inheritance graph
[legend]

List of all members.


Detailed Description

A QLabel with option for a buddy radio button.

The Label class provides a text display, with special behaviour when a radio button is set as a buddy.

The Label object in effect acts as if it were part of the buddy radio button, in that when the label's accelerator key is pressed, the radio button receives focus and is switched on. When a non-radio button is specified as a buddy, the behaviour is the same as for QLabel.

Author:
David Jarvie <software@astrojar.org.uk>

Definition at line 42 of file label.h.


Public Member Functions

 Label (QWidget *buddy, const QString &text, QWidget *parent, Qt::WFlags f=0)
 Label (const QString &text, QWidget *parent, Qt::WFlags f=0)
 Label (QWidget *parent, Qt::WFlags f=0)
virtual void setBuddy (QWidget *buddy)

Constructor & Destructor Documentation

Label::Label ( QWidget *  parent,
Qt::WFlags  f = 0 
) [explicit]

Constructs an empty label.

Parameters:
parent The parent object of this widget.
f Flags. See QWidget constructor for details.

Definition at line 26 of file label.cpp.

Label::Label ( const QString &  text,
QWidget *  parent,
Qt::WFlags  f = 0 
)

Constructs a label that displays text.

Parameters:
text Text string to display.
parent The parent object of this widget.
f Flags. See QWidget constructor for details.

Definition at line 32 of file label.cpp.

Label::Label ( QWidget *  buddy,
const QString &  text,
QWidget *  parent,
Qt::WFlags  f = 0 
)

Constructs a label, with a buddy widget, that displays text.

Parameters:
buddy Buddy widget which receives the keyboard focus when the label's accelerator key is pressed. If buddy is a radio button, buddy is in addition selected when the accelerator key is pressed.
text Text string to display.
parent The parent object of this widget.
f Flags. See QWidget constructor for details.

Definition at line 38 of file label.cpp.


Member Function Documentation

void Label::setBuddy ( QWidget *  buddy  )  [virtual]

Sets the label's buddy widget which receives the keyboard focus when the label's accelerator key is pressed.

If buddy is a radio button, buddy is in addition selected when the accelerator key is pressed.

Reimplemented from QLabel.

Definition at line 52 of file label.cpp.


The documentation for this class was generated from the following files:
  • label.h
  • label.cpp

kalarm/lib

Skip menu "kalarm/lib"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal