Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@mapswithme.com>2013-07-07 17:17:44 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:58:24 +0300
commitf70fe79886fe2e869bfe498dfa2daf83dca5dbfe (patch)
tree5c962de997c290d55b98afc11075bf9045cefaaf /testing
parent440b639e8b141a64e027ce97c7baf64fb2c60261 (diff)
[qt] Fixed compilation
Diffstat (limited to 'testing')
-rw-r--r--testing/testingmain.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp
index d78ecc39ce..1216cc9390 100644
--- a/testing/testingmain.cpp
+++ b/testing/testingmain.cpp
@@ -8,8 +8,13 @@
#include "../std/target_os.hpp"
#ifdef OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP
+ #include <Qt>
#ifdef OMIM_OS_MAC // on Mac OS X native run loop works only for QApplication :(
- #include <QtWidgets/QApplication>
+ #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
+ #include <QtGui/QApplication>
+ #else
+ #include <QtWidgets/QApplication>
+ #endif
#define QAPP QApplication
#else
#include <QtCore/QCoreApplication>