# HG changeset patch # User koda # Date 1327655954 -3600 # Node ID 9cc612a24b43f8aadbfc837ae72d564876d8a6f2 # Parent ef9ed71e3cf78f61b8a4a50e86f1ee045d25ff22 this should lower compatibility with qt4.5 again, but i have no way to test it diff -r ef9ed71e3cf7 -r 9cc612a24b43 QTfrontend/CMakeLists.txt --- 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) diff -r ef9ed71e3cf7 -r 9cc612a24b43 QTfrontend/hwform.cpp --- 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 #include #include +#include + +#if (QT_VERSION >= 0x040600) #include #include -#include +#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()