Compile if the header files from QtWidgets are unavailable

Change-Id: I0a774fc1492e882bc6c02d913e6dace189fdb992
Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
This commit is contained in:
Lars Knoll 2012-01-12 14:24:39 +01:00 committed by Qt by Nokia
parent 1453f74cc5
commit 265ce60718
4 changed files with 18 additions and 5 deletions

View File

@ -57,10 +57,13 @@
#include <QtTest/qtesttouch.h>
#include <QtTest/qtestkeyboard.h>
#include <QtWidgets/qicon.h>
#include <QtGui/qpixmap.h>
#include <QtGui/qimage.h>
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/qicon.h>
#endif
#if 0
// inform syncqt
#pragma qt_no_master_include

View File

@ -53,11 +53,16 @@
#include <QtTest/qtestspontaneevent.h>
#include <QtCore/qpointer.h>
#include <QtWidgets/qapplication.h>
#include <QtGui/qguiapplication.h>
#include <QtGui/qwindow.h>
#include <QtGui/qevent.h>
#include <QtWidgets/qwidget.h>
#include <QtGui/qwindowsysteminterface_qpa.h>
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/qwidget.h>
#include <QtWidgets/qapplication.h>
#endif
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

View File

@ -53,11 +53,14 @@
#include <QtTest/qtestspontaneevent.h>
#include <QtCore/qpoint.h>
#include <QtCore/qstring.h>
#include <QtWidgets/qapplication.h>
#include <QtGui/qevent.h>
#include <QtWidgets/qwidget.h>
#include <QtGui/qwindowsysteminterface_qpa.h>
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/qapplication.h>
#include <QtWidgets/qwidget.h>
#endif
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE

View File

@ -54,7 +54,9 @@
#include <QtGui/QWindowSystemInterface>
#include <QtCore/qmap.h>
#include <QtGui/qevent.h>
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/qwidget.h>
#endif
QT_BEGIN_HEADER