summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shared/autotest/src.pro6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/autotest/src.pro b/shared/autotest/src.pro
index 26f9b3a152..61fbe2a5bc 100644
--- a/shared/autotest/src.pro
+++ b/shared/autotest/src.pro
@@ -1,7 +1,9 @@
@if "%RequireGUI%" == "true"
-QT += gui widgets
+QT += core gui
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@else
-QT += console
+QT -= gui
+CONFIG += console
CONFIG -= app_bundle
@endif