diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-07-04 18:58:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-07-04 18:58:02 (GMT) |
commit | c1605e5b6df0248e8dae3a578a89885f26b41c88 (patch) | |
tree | 664f7eba133cf2b4d4e8add25229777806fc9b8c /addon/doxywizard/inputbool.cpp | |
parent | 6b195c8d27c7cba3885acf1540f33ea7f51b9d1b (diff) | |
download | Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.zip Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.tar.gz Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.tar.bz2 |
Release-1.3.7-20040704
Diffstat (limited to 'addon/doxywizard/inputbool.cpp')
-rw-r--r-- | addon/doxywizard/inputbool.cpp | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/addon/doxywizard/inputbool.cpp b/addon/doxywizard/inputbool.cpp index e73b605..e1f16a1 100644 --- a/addon/doxywizard/inputbool.cpp +++ b/addon/doxywizard/inputbool.cpp @@ -13,35 +13,32 @@ */ #include "inputbool.h" -#include "pagewidget.h" -#if QT_VERSION >= 300 -#include <qstylefactory.h> -#else -#include <qwindowsstyle.h> -#endif +//#if QT_VERSION >= 300 +//#include <qstylefactory.h> +//#else +//#include <qwindowsstyle.h> +//#endif #include <qlayout.h> -InputBool::InputBool( const QString & text, PageWidget * parent, bool &flag ) - : /*QCheckBox( text, parent->getLayout() )*/ QWidget(parent->getLayout()), state(flag) +InputBool::InputBool( const QString & text, QWidget * parent, bool &flag ) + : QWidget(parent), state(flag) { QBoxLayout *layout = new QHBoxLayout(this); cb = new QCheckBox(text,this); layout->addWidget(cb); layout->addStretch(10); -#if QT_VERSION >= 300 - QStyle *winStyle = QStyleFactory::create("windows"); -#else - QWindowsStyle *winStyle = new QWindowsStyle(); -#endif +//#if QT_VERSION >= 300 +// QStyle *winStyle = QStyleFactory::create("windows"); +//#else +// QWindowsStyle *winStyle = new QWindowsStyle(); +//#endif cb->setChecked( flag ); - if (winStyle) cb->setStyle( winStyle ); +// if (winStyle) cb->setStyle( winStyle ); cb->setMinimumSize( sizeHint() ); connect( cb, SIGNAL(toggled(bool)), SLOT(setState(bool)) ); - parent->addWidget(this); - layout->activate(); } |