From d3f1d9a3fd907408fa2f02aee42fa8abd06bd223 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 6 May 2015 09:34:36 +0200 Subject: Fix creating auto test without gui Change-Id: Id1d0b686eda09f6fb513374c9b5337ffdd83b82a Reviewed-by: Eike Ziller --- shared/autotest/src.pro | 6 ++++-- 1 file 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 -- cgit v1.2.1