Update precompiled headers

Include many headers that are commonly used now, and avoid listing them
twice.

Change-Id: I679dc24cff2cb3a3c9c18585ec78007ab3550743
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Allan Sandfeld Jensen 2019-04-03 14:14:32 +02:00
parent ac244dbcf2
commit fe7a8d61d1
3 changed files with 20 additions and 55 deletions

View File

@ -60,12 +60,18 @@
# undef _POSIX_ # undef _POSIX_
#endif #endif
#include <qcoreapplication.h> #include <qcoreapplication.h>
#include <qcoreevent.h>
#include <qiodevice.h>
#include <qlist.h> #include <qlist.h>
#include <qvariant.h> /* All moc genereated code has this include */ #include <qvariant.h> /* All moc genereated code has this include */
#include <qobject.h> #include <qobject.h>
#include <qregexp.h> #include <qregexp.h>
#include <qscopedpointer.h>
#include <qshareddata.h>
#include <qstring.h> #include <qstring.h>
#include <qstringlist.h> #include <qstringlist.h>
#include <qtimer.h>
#include <qvector.h>
#if QT_CONFIG(textcodec) #if QT_CONFIG(textcodec)
#include <qtextcodec.h> #include <qtextcodec.h>
#endif #endif

View File

@ -45,37 +45,20 @@
* UNSUPPORTED. * UNSUPPORTED.
*/ */
// from corelib/global/qt_pch.h #include "../../corelib/global/qt_pch.h"
#if defined __cplusplus #if defined __cplusplus
#include <qtguiglobal.h> #include <qtguiglobal.h>
#ifdef Q_OS_WIN
# define _POSIX_
# include <limits.h>
# undef _POSIX_
#endif
#include <qcoreapplication.h>
#include <qlist.h>
#include <qvariant.h> // All moc genereated code has this include
#include <qobject.h>
#include <qregexp.h>
#include <qstring.h>
#include <qstringlist.h>
#if QT_CONFIG(textcodec)
#include <qtextcodec.h>
#endif
#include <qguiapplication.h> #include <qguiapplication.h>
#include <qbitmap.h> #include <qbitmap.h>
#include <qclipboard.h>
#include <qcursor.h> #include <qcursor.h>
#include <qevent.h> #include <qevent.h>
#include <qfont.h>
#include <qimage.h> #include <qimage.h>
#include <qpainter.h> #include <qpainter.h>
#include <qpixmap.h> #include <qpixmap.h>
#include <qtimer.h> #include <qscreen.h>
#include <qsurface.h>
#include <stdlib.h> #include <qwindow.h>
#endif #endif

View File

@ -45,41 +45,17 @@
* UNSUPPORTED. * UNSUPPORTED.
*/ */
// from corelib/global/qt_pch.h #include "../../gui/kernel/qt_gui_pch.h"
#if defined __cplusplus #if defined __cplusplus
#include <qtwidgetsglobal.h> #include <qtwidgetsglobal.h>
#if 0 // Used to be included in Qt4 for Q_WS_WIN
# define _POSIX_
# include <limits.h>
# undef _POSIX_
#endif
#include <qcoreapplication.h>
#include <qlist.h>
#include <qvariant.h> // All moc genereated code has this include
#include <qobject.h>
#include <qregexp.h>
#include <qstring.h>
#include <qstringlist.h>
#if QT_CONFIG(textcodec)
#include <qtextcodec.h>
#endif
#include <qapplication.h> #include <qapplication.h>
#include <qbitmap.h> #include <qabstractbutton.h>
#include <qcursor.h> #include <qabstractscrollarea.h>
#include <qdesktopwidget.h> #include <qabstractslider.h>
#include <qevent.h> #include <qaction.h>
#include <qimage.h> #include <qcommonstyle.h>
#include <qlayout.h> #include <qlayout.h>
#include <qpainter.h>
#include <qpixmap.h>
#include <qstyle.h> #include <qstyle.h>
#include <qtimer.h>
#include <qwidget.h> #include <qwidget.h>
#include <stdlib.h>
#endif #endif