1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQRadioButtonGroup.h
15 Author: Stefan Hundhammer <sh@suse.de>
19 #ifndef YQRadioButtonGroup_h
20 #define YQRadioButtonGroup_h
23 #include "YRadioButtonGroup.h"
26 class YQRadioButtonGroup : public QWidget, public YRadioButtonGroup
34 YQRadioButtonGroup( YWidget * parent );
39 virtual ~YQRadioButtonGroup();
44 * Reimplemented from YRadioButtonGroup.
46 virtual void addRadioButton( YRadioButton * button );
49 * Set enabled/disabled state.
51 * Reimplemented from YWidget.
53 virtual void setEnabled( bool enabled );
56 * Set the new size of the widget.
58 * Reimplemented from YWidget.
60 virtual void setSize( int newWidth, int newHeight );
66 * Triggered when one of the radio buttons changed state.
67 * This implements the radio box behaviour, i.e. unselects all but the last
68 * selected radio button.
70 void radioButtonClicked( bool newState );
76 * Used to prevent infinite recursion due to signal race conditions.
82 #endif // YQRadioButtonGroup_h