this should lower compatibility with qt4.5 again, but i have no way to test it
authorkoda
Fri, 27 Jan 2012 10:19:14 +0100
changeset 6604 9cc612a24b43
parent 6603 ef9ed71e3cf7
child 6605 800d4c029d53
this should lower compatibility with qt4.5 again, but i have no way to test it
QTfrontend/CMakeLists.txt
QTfrontend/hwform.cpp
--- a/QTfrontend/CMakeLists.txt	Thu Jan 26 23:54:53 2012 +0100
+++ b/QTfrontend/CMakeLists.txt	Fri Jan 27 10:19:14 2012 +0100
@@ -1,5 +1,5 @@
 # Configure for Qt4
-set(QT_MIN_VERSION "4.6.0")
+set(QT_MIN_VERSION "4.5.0")
 include(CheckLibraryExists)
 
 set(QT_USE_QTCORE TRUE)
--- a/QTfrontend/hwform.cpp	Thu Jan 26 23:54:53 2012 +0100
+++ b/QTfrontend/hwform.cpp	Fri Jan 27 10:19:14 2012 +0100
@@ -41,9 +41,12 @@
 #include <QDesktopServices>
 #include <QInputDialog>
 #include <QPropertyAnimation>
+#include <QSettings>
+
+#if (QT_VERSION >= 0x040600)
 #include <QGraphicsEffect>
 #include <QParallelAnimationGroup>
-#include <QSettings>
+#endif
 
 #include "hwform.h"
 #include "game.h"
@@ -593,6 +596,7 @@
     if (id == ID_PAGE_DRAWMAP)
         stopAnim = true;
 
+#if (QT_VERSION >= 0x040600)
     if (!stopAnim)
     {
         /**Start animation :**/
@@ -651,6 +655,7 @@
 
         connect(animationOldSlide, SIGNAL(finished()), ui.Pages->widget(lastid), SLOT(hide()));
     }
+#endif
 }
 
 void HWForm::GoBack()
@@ -700,8 +705,8 @@
     if (curid == ID_PAGE_SCHEME)
         ammoSchemeModel->Save();
 
+#if (QT_VERSION >= 0x040600)
     /**Start animation :**/
-
     if (curid != 0 && !stopAnim)
     {
         int coeff = 1;
@@ -759,6 +764,7 @@
 
         connect(animationNewSlide, SIGNAL(finished()), ui.Pages->widget(curid), SLOT(hide()));
     }
+#endif
 }
 
 void HWForm::OpenSnapshotFolder()