summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-04-27 19:44:46 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-04-27 19:44:46 (GMT)
commit08b4b96ea20ded173b851aeb452c5d3c98e08cc4 (patch)
tree73dfea63810e8b2a57aee5b37ecd2f360c69f440 /addon/doxywizard
parentf08c77a2ead21877f1cbd49a5b325ab7be0fc599 (diff)
downloadDoxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.zip
Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.tar.gz
Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.tar.bz2
Release-1.3.6-20040427
Diffstat (limited to 'addon/doxywizard')
-rw-r--r--addon/doxywizard/inputbool.cpp10
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)) );