• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KButtonGroup Class Reference

Group box with index of the selected button KGroupBox is a simple group box that can keep track of the current selected button of the ones added to it. More...

#include <kbuttongroup.h>

Inheritance diagram for KButtonGroup:
QGroupBox

List of all members.

Public Slots

void setSelected (int id)

Signals

void changed (int id)
void clicked (int id)
void pressed (int id)
void released (int id)

Public Member Functions

int id (QAbstractButton *button) const
 KButtonGroup (QWidget *parent=0)
int selected () const
 ~KButtonGroup ()

Protected Member Functions

virtual void childEvent (QChildEvent *event)

Properties

int current

Detailed Description

Group box with index of the selected button KGroupBox is a simple group box that can keep track of the current selected button of the ones added to it.

Use normally as you would with a QGroupBox.

Author:
Pino Toscano <toscano.pino@tiscali.it>

Definition at line 39 of file kbuttongroup.h.


Constructor & Destructor Documentation

KButtonGroup::KButtonGroup ( QWidget *  parent = 0  )  [explicit]

Construct a new empty KGroupBox.

Definition at line 54 of file kbuttongroup.cpp.

KButtonGroup::~KButtonGroup (  ) 

Destroys the widget.

Definition at line 59 of file kbuttongroup.cpp.


Member Function Documentation

void KButtonGroup::changed ( int  id  )  [signal]

Emitted when anything (a click on a button, or calling setSelected()) change the id of the current selected.

id is the index of the new selected button.

void KButtonGroup::childEvent ( QChildEvent *  event  )  [protected, virtual]

Reimplemented from QGroupBox.

Definition at line 94 of file kbuttongroup.cpp.

void KButtonGroup::clicked ( int  id  )  [signal]

The button with index id was clicked.

int KButtonGroup::id ( QAbstractButton *  button  )  const
Returns:
the index of button.
Since:
4.3

Definition at line 144 of file kbuttongroup.cpp.

void KButtonGroup::pressed ( int  id  )  [signal]

The button with index id was pressed.

void KButtonGroup::released ( int  id  )  [signal]

The button with index id was released.

int KButtonGroup::selected (  )  const

Return the index of the selected QAbstractButton, among the QAbstractButton's added to the widget.

Returns:
the index of the selected button

Definition at line 89 of file kbuttongroup.cpp.

void KButtonGroup::setSelected ( int  id  )  [slot]

Select the id -th button.

Definition at line 64 of file kbuttongroup.cpp.


Property Documentation

int KButtonGroup::current [read, write]

Definition at line 44 of file kbuttongroup.h.


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

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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