![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Widgets/ctkButtonGroup.h>
Public Slots | |
void | setChecked (QAbstractButton *button, bool checked=true) |
Check or uncheck the button. More... | |
Public Member Functions | |
ctkButtonGroup (QObject *_parent=0) | |
virtual | ~ctkButtonGroup () |
Protected Slots | |
void | onButtonClicked (int button) |
void | onButtonPressed (int button) |
Protected Attributes | |
QScopedPointer< ctkButtonGroupPrivate > | d_ptr |
ctkButtonGroup is a QButtonGroup with a different behavior when exclusive. An exclusive ctkButtonGroup switches off the previously checked button when a new button is checked. ctkButtonGroup doesn't enforce that 1 button is checked at all time (contrary to QButtonGroup). If a button is checked it is possible to uncheck it without having to check another button. Use ctkButtonGroup the same way than QButtonGroup.
By default ctkButtonGroup is exclusive.
Definition at line 49 of file ctkButtonGroup.h.
|
explicit |
|
virtual |
|
protectedslot |
|
protectedslot |
|
slot |
Check or uncheck the button.
|
protected |
Definition at line 65 of file ctkButtonGroup.h.