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

kalarm/lib

Public Member Functions | List of all members
Label Class Reference

#include <label.h>

Inheritance diagram for Label:
Inheritance graph
[legend]

Public Member Functions

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

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 djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g

Definition at line 42 of file label.h.

Constructor & Destructor Documentation

Label::Label ( QWidget *  parent,
Qt::WindowFlags  f = 0 
)
explicit

Constructs an empty label.

Parameters
parentThe parent object of this widget.
fFlags. See QWidget constructor for details.

Definition at line 26 of file label.cpp.

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

Constructs a label that displays text.

Parameters
textText string to display.
parentThe parent object of this widget.
fFlags. See QWidget constructor for details.

Definition at line 32 of file label.cpp.

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

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

Parameters
buddyBuddy 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.
textText string to display.
parentThe parent object of this widget.
fFlags. 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.

Definition at line 52 of file label.cpp.


The documentation for this class was generated from the following files:
  • label.h
  • label.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalarm/lib

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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