diff options
author | Darafei Praliaskouski <komzpa@mapswith.me> | 2013-07-04 16:28:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:58:07 +0300 |
commit | a3353dbd542388b14fcb7b37f50d0b9d0ddedffd (patch) | |
tree | 52336db0a76564e4270167d901a9028b9a4fe469 /qt/mainwindow.cpp | |
parent | 2586ee90ef57e36a66b2722a6f5412455b811a66 (diff) |
[qt] allow qt4 builds
Diffstat (limited to 'qt/mainwindow.cpp')
-rw-r--r-- | qt/mainwindow.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index ab177bfee7..2804066920 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -14,11 +14,20 @@ #include <QtGui/QCloseEvent> -#include <QtWidgets/QAction> -#include <QtWidgets/QDockWidget> -#include <QtWidgets/QMenu> -#include <QtWidgets/QMenuBar> -#include <QtWidgets/QToolBar> +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + #include <QtGui/QAction> + #include <QtGui/QDockWidget> + #include <QtGui/QMenu> + #include <QtGui/QMenuBar> + #include <QtGui/QToolBar> +#else + #include <QtWidgets/QAction> + #include <QtWidgets/QDockWidget> + #include <QtWidgets/QMenu> + #include <QtWidgets/QMenuBar> + #include <QtWidgets/QToolBar> +#endif + #define IDM_ABOUT_DIALOG 1001 #define IDM_PREFERENCES_DIALOG 1002 |