From 4bde6f77ed83b72b6bfbcfb022e25a98f2552c99 Mon Sep 17 00:00:00 2001 From: Rudolf Grauberger Date: Sun, 13 Aug 2017 13:38:47 +0200 Subject: [PATCH] GUI: Remove support for Qt4 in gui.pro --- gui/gui.pro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/gui.pro b/gui/gui.pro index 3b8081df8..e090282ed 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -1,3 +1,5 @@ +lessThan(QT_MAJOR_VERSION, 5): error(requires >= Qt 5 (You used: $$QT_VERSION)) + TEMPLATE = app TARGET = cppcheck-gui CONFIG += warn_on debug @@ -5,10 +7,8 @@ DEPENDPATH += . \ ../lib INCLUDEPATH += . \ ../lib -greaterThan(QT_MAJOR_VERSION, 4) { - QT += widgets # In Qt 5 widgets are in separate module - QT += printsupport # In Qt 5 QPrinter/QPrintDialog are in separate module -} +QT += widgets +QT += printsupport contains(LINKCORE, [yY][eE][sS]) { LIBS += -l../bin/cppcheck-core