KDWinUtils
Helper library for MFC to Qt migration
|
The KButtonGroup class is used to replace DDX_Radio data exchange. More...
#include <kbuttongroup.h>
Public Member Functions | |
void | addButton (QAbstractButton *button) |
KButtonGroup (int value) | |
operator int () const | |
KButtonGroup & | operator= (int value) |
The KButtonGroup class is used to replace DDX_Radio data exchange.
This class is a Qt QButtonGroup
, with an int conversion to match the MFC API. There are no MFC equivalent for this class, as an int is used in MFC to represent the selected radio button.
|
explicit |
Constructs a KButtonGroup with a default selected button.
void KButtonGroup::addButton | ( | QAbstractButton * | button | ) |
Adds a button to the group. If a default value was set, the button will be checked if it's the right one.
KButtonGroup::operator int | ( | ) | const |
Returns the index of the current selected button.
KButtonGroup & KButtonGroup::operator= | ( | int | value | ) |
Selects the button at the given index.