From 3664d2800c865c5adc51a1f23fc96f273a2c7170 Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@digia.com>
Date: Tue, 9 Oct 2012 09:55:28 +0200
Subject: [PATCH] Remove module includes from makeqpf, qev.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: I5c8f8bd610bb9d83ef1feec204411163a4a170b8
Reviewed-by: Peter Kümmel <syntheticpp@gmx.net>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
---
 src/makeqpf/main.cpp    | 2 +-
 src/makeqpf/makeqpf.pro | 1 +
 src/qev/qev.cpp         | 4 +++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/makeqpf/main.cpp b/src/makeqpf/main.cpp
index 78dfbf3bf..36e357046 100644
--- a/src/makeqpf/main.cpp
+++ b/src/makeqpf/main.cpp
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#include <QtGui>
+#include <QApplication>
 
 #include "qpf2.h"
 #include "mainwindow.h"
diff --git a/src/makeqpf/makeqpf.pro b/src/makeqpf/makeqpf.pro
index bd976db95..0ab48f433 100644
--- a/src/makeqpf/makeqpf.pro
+++ b/src/makeqpf/makeqpf.pro
@@ -2,6 +2,7 @@ INCLUDEPATH += ../../src/3rdparty/harfbuzz/src
 QT += widgets gui-private core-private
 CONFIG += console
 DESTDIR = $$QT.designer.bins
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
 
 HEADERS += qpf2.h mainwindow.h
 SOURCES += main.cpp qpf2.cpp mainwindow.cpp
diff --git a/src/qev/qev.cpp b/src/qev/qev.cpp
index 887decea9..676b451c9 100644
--- a/src/qev/qev.cpp
+++ b/src/qev/qev.cpp
@@ -39,7 +39,9 @@
 **
 ****************************************************************************/
 
-#include <QtWidgets>
+#include <QWidget>
+#include <QApplication>
+#include <QDebug>
 
 QT_USE_NAMESPACE
 
-- 
GitLab