diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-07-28 20:14:48 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-07-28 20:14:48 (GMT) |
commit | 9c8ea2e90bb38ba21675799fe364fc7a546b020c (patch) | |
tree | eb4c65d3676c6ecd00dc532bcb6420f9eb71aa32 /addon/doxywizard/inputbool.cpp | |
parent | a2bf2ebcf009a45c53748f0c7f9182c017c0bcd9 (diff) | |
download | Doxygen-9c8ea2e90bb38ba21675799fe364fc7a546b020c.zip Doxygen-9c8ea2e90bb38ba21675799fe364fc7a546b020c.tar.gz Doxygen-9c8ea2e90bb38ba21675799fe364fc7a546b020c.tar.bz2 |
Release-1.2.17-20020728
Diffstat (limited to 'addon/doxywizard/inputbool.cpp')
-rw-r--r-- | addon/doxywizard/inputbool.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/addon/doxywizard/inputbool.cpp b/addon/doxywizard/inputbool.cpp index 43d994d..33ecf2f 100644 --- a/addon/doxywizard/inputbool.cpp +++ b/addon/doxywizard/inputbool.cpp @@ -15,23 +15,31 @@ #include "inputbool.h" #include "pagewidget.h" #include <qwindowsstyle.h> +#include <qlayout.h> InputBool::InputBool( const QString & text, PageWidget * parent, bool &flag ) - : QCheckBox( text, parent->getLayout() ), state(flag) + : /*QCheckBox( text, parent->getLayout() )*/ QWidget(parent->getLayout()), state(flag) { + QBoxLayout *layout = new QHBoxLayout(this); + cb = new QCheckBox(text,this); + layout->addWidget(cb); + layout->addStretch(10); + QWindowsStyle *winStyle = new QWindowsStyle(); - setChecked( flag ); - setStyle( winStyle ); - setMinimumSize( sizeHint() ); + cb->setChecked( flag ); + cb->setStyle( winStyle ); + cb->setMinimumSize( sizeHint() ); - connect( this, SIGNAL(toggled(bool)), SLOT(setState(bool)) ); + connect( cb, SIGNAL(toggled(bool)), SLOT(setState(bool)) ); parent->addWidget(this); + + layout->activate(); } void InputBool::init() { - setChecked(state); + cb->setChecked(state); } void InputBool::setState( bool s ) @@ -39,7 +47,7 @@ void InputBool::setState( bool s ) if (state!=s) { emit changed(); - emit toggle(text(),s); + emit toggle(cb->text(),s); } state=s; } |