KDEUI
KButtonGroup Class Reference
#include <kbuttongroup.h>
Inheritance diagram for KButtonGroup:

Detailed Description
Group box with index of the selected radio button KGroupBox is a simple group box that can keep track of the current selected radio button of the ones added to it.Use normally as you would with a QGroupBox.
Definition at line 37 of file 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) | |
int | selected () const |
~KButtonGroup () | |
Protected Member Functions | |
virtual void | childEvent (QChildEvent *event) |
Properties | |
int | current |
Friends | |
class(d, void slotClicked(int id)) private | Private |
Constructor & Destructor Documentation
KButtonGroup::KButtonGroup | ( | QWidget * | parent = 0 |
) | [explicit] |
KButtonGroup::~KButtonGroup | ( | ) |
Member Function Documentation
void KButtonGroup::changed | ( | int | id | ) | [signal] |
Emitted when anything (a click on a radio button, or calling setSelected()) change the id of the current selected.
id
is the index of the new selected radio button.
void KButtonGroup::childEvent | ( | QChildEvent * | event | ) | [protected, virtual] |
void KButtonGroup::clicked | ( | int | id | ) | [signal] |
The radio button with index id
was clicked.
void KButtonGroup::pressed | ( | int | id | ) | [signal] |
The radio button with index id
was pressed.
void KButtonGroup::released | ( | int | id | ) | [signal] |
The radio button with index id
was released.
int KButtonGroup::selected | ( | ) | const |
Return the index of the selected QRadioButton, among the QRadioButton's added to the widget.
- Returns:
- the index of the selected radio button
Definition at line 89 of file kbuttongroup.cpp.
void KButtonGroup::setSelected | ( | int | id | ) | [slot] |
Friends And Related Function Documentation
friend class (d, void slotClicked( int id )) private Private [friend] |
Definition at line 94 of file kbuttongroup.h.
Property Documentation
int KButtonGroup::current [read, write] |
Definition at line 42 of file kbuttongroup.h.
The documentation for this class was generated from the following files: