From 92f6a4588f6bfc78e9b8b536ec7895d048c3aa30 Mon Sep 17 00:00:00 2001 From: Kimmo Ollila Date: Sun, 18 Dec 2016 09:03:59 +0200 Subject: [PATCH] Add needed includes to qdesktopwidget_p.h and qwidgetwindow_p.h The template definitions are required here as we are using an object of type QPointer below when doing static cast of QPointer::data() Change-Id: I41e2b6f59667574ca3c5d75c5dddb203790adbce Reviewed-by: Lars Knoll --- src/widgets/kernel/qdesktopwidget_p.h | 1 + src/widgets/kernel/qwidgetwindow_p.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/widgets/kernel/qdesktopwidget_p.h b/src/widgets/kernel/qdesktopwidget_p.h index 4846a868aa..dade4fe45e 100644 --- a/src/widgets/kernel/qdesktopwidget_p.h +++ b/src/widgets/kernel/qdesktopwidget_p.h @@ -56,6 +56,7 @@ #include "private/qwidget_p.h" #include +#include QT_BEGIN_NAMESPACE diff --git a/src/widgets/kernel/qwidgetwindow_p.h b/src/widgets/kernel/qwidgetwindow_p.h index edf2383596..a81355160e 100644 --- a/src/widgets/kernel/qwidgetwindow_p.h +++ b/src/widgets/kernel/qwidgetwindow_p.h @@ -56,6 +56,7 @@ #include #include +#include QT_BEGIN_NAMESPACE