KDEUI
#include <kbuttongroup.h>
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 | |
KButtonGroup (QWidget *parent=0) | |
~KButtonGroup () | |
int | id (QAbstractButton *button) const |
int | selected () const |
Protected Member Functions | |
virtual void | childEvent (QChildEvent *event) |
Properties | |
int | current |
Detailed Description
Group box with index of the selected button KButtonGroup 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.
Definition at line 41 of file kbuttongroup.h.
Constructor & Destructor Documentation
|
explicit |
Construct a new empty KGroupBox.
Definition at line 59 of file kbuttongroup.cpp.
KButtonGroup::~KButtonGroup | ( | ) |
Destroys the widget.
Definition at line 63 of file kbuttongroup.cpp.
Member Function Documentation
|
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.
|
protectedvirtual |
Reimplemented from QGroupBox.
Definition at line 98 of file kbuttongroup.cpp.
|
signal |
The button with index id
was clicked.
int KButtonGroup::id | ( | QAbstractButton * | button | ) | const |
|
signal |
The button with index id
was pressed.
|
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 93 of file kbuttongroup.cpp.
|
slot |
Select the id
-th button.
Definition at line 68 of file kbuttongroup.cpp.
Property Documentation
|
readwrite |
Definition at line 45 of file kbuttongroup.h.
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:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.