diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-07-04 18:58:02 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-07-04 18:58:02 (GMT) |
commit | 285d9c6265b673238b1a97bb7da5ea48aff16beb (patch) | |
tree | 664f7eba133cf2b4d4e8add25229777806fc9b8c /addon/doxywizard/inputbool.cpp | |
parent | d3c3bbd02543280d12a763d82aa5b54ce516c57f (diff) | |
download | Doxygen-285d9c6265b673238b1a97bb7da5ea48aff16beb.zip Doxygen-285d9c6265b673238b1a97bb7da5ea48aff16beb.tar.gz Doxygen-285d9c6265b673238b1a97bb7da5ea48aff16beb.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(); } |