QTfrontend/hwform.cpp
changeset 6604 9cc612a24b43
parent 6574 ec059b55aa72
child 6616 f77bb02b669f
--- 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()