[qet] [2577] fix minor graphics bug with new element wizard

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2577
Author:   blacksun
Date:     2013-10-20 19:22:33 +0200 (Sun, 20 Oct 2013)
Log Message:
-----------
fix minor graphics bug with new element wizard
on windows vista and 7 with the Aero style.

Modified Paths:
--------------
    trunk/sources/newelementwizard.cpp

Modified: trunk/sources/newelementwizard.cpp
===================================================================
--- trunk/sources/newelementwizard.cpp	2013-10-20 05:17:12 UTC (rev 2576)
+++ trunk/sources/newelementwizard.cpp	2013-10-20 17:22:33 UTC (rev 2577)
@@ -39,9 +39,13 @@
 	chosen_category(0)
 {
 	setOptions(options() & ~QWizard::NoCancelButton);
-#ifdef Q_WS_MAC
-	setWindowFlags(Qt::Sheet);
+
+#ifdef Q_WS_WIN
+	setWizardStyle(QWizard::AeroStyle);
+#elif Q_WS_MAC
+	setWizardStyle(QWizard::MacStyle);
 #endif
+
 	setPixmap(LogoPixmap, QPixmap(":/ico/256x256/qelectrotech.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
 	setWindowTitle(tr("Cr\351er un nouvel \351l\351ment : Assistant", "window title"));
 	setButtonText(QWizard::NextButton, tr("&Suivant >"));


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/