diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-04-27 19:44:46 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-04-27 19:44:46 (GMT) |
commit | 08b4b96ea20ded173b851aeb452c5d3c98e08cc4 (patch) | |
tree | 73dfea63810e8b2a57aee5b37ecd2f360c69f440 /addon/doxywizard/inputbool.cpp | |
parent | f08c77a2ead21877f1cbd49a5b325ab7be0fc599 (diff) | |
download | Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.zip Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.tar.gz Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.tar.bz2 |
Release-1.3.6-20040427
Diffstat (limited to 'addon/doxywizard/inputbool.cpp')
-rw-r--r-- | addon/doxywizard/inputbool.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/addon/doxywizard/inputbool.cpp b/addon/doxywizard/inputbool.cpp index be3d630..e73b605 100644 --- a/addon/doxywizard/inputbool.cpp +++ b/addon/doxywizard/inputbool.cpp @@ -14,7 +14,11 @@ #include "inputbool.h" #include "pagewidget.h" +#if QT_VERSION >= 300 +#include <qstylefactory.h> +#else #include <qwindowsstyle.h> +#endif #include <qlayout.h> InputBool::InputBool( const QString & text, PageWidget * parent, bool &flag ) @@ -25,9 +29,13 @@ InputBool::InputBool( const QString & text, PageWidget * parent, bool &flag ) layout->addWidget(cb); layout->addStretch(10); +#if QT_VERSION >= 300 + QStyle *winStyle = QStyleFactory::create("windows"); +#else QWindowsStyle *winStyle = new QWindowsStyle(); +#endif cb->setChecked( flag ); - cb->setStyle( winStyle ); + if (winStyle) cb->setStyle( winStyle ); cb->setMinimumSize( sizeHint() ); connect( cb, SIGNAL(toggled(bool)), SLOT(setState(bool)) ); |