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"
27 class YQRadioButtonGroup : public QWidget, public YRadioButtonGroup
35 YQRadioButtonGroup( YWidget * parent );
40 virtual ~YQRadioButtonGroup();
45 * Reimplemented from YRadioButtonGroup.
47 virtual void addRadioButton( YRadioButton * button );
50 * Set enabled/disabled state.
52 * Reimplemented from YWidget.
54 virtual void setEnabled( bool enabled );
57 * Set the new size of the widget.
59 * Reimplemented from YWidget.
61 virtual void setSize( int newWidth, int newHeight );
67 * Triggered when one of the radio buttons changed state.
68 * This implements the radio box behaviour, i.e. unselects all but the last
69 * selected radio button.
71 void radioButtonClicked( bool newState );
77 * Used to prevent infinite recursion due to signal race conditions.
83 #endif // YQRadioButtonGroup_h