diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-05-03 15:00:21 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-05-03 16:10:52 +0200 |
commit | f1f5a80cfeee145e4c0d080cb1e592e845e7ce83 (patch) | |
tree | 141d77c60e9ec83201a6017b4e7b91279da622f9 /src/gui/image/qnativeimage.cpp | |
parent | 2ce57e22d0c8d68a98463bf7ea6a97c6bd2b7742 (diff) |
remove QApplication dependencies in gui/image
Diffstat (limited to 'src/gui/image/qnativeimage.cpp')
-rw-r--r-- | src/gui/image/qnativeimage.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/image/qnativeimage.cpp b/src/gui/image/qnativeimage.cpp index a5a4e7b614..2b03f17363 100644 --- a/src/gui/image/qnativeimage.cpp +++ b/src/gui/image/qnativeimage.cpp @@ -45,7 +45,7 @@ #include "private/qpaintengine_raster_p.h" -#include "private/qapplication_p.h" +#include "private/qguiapplication_qpa_p.h" #if defined(Q_WS_X11) && !defined(QT_NO_MITSHM) #include <qx11info_x11.h> @@ -301,11 +301,7 @@ QNativeImage::~QNativeImage() QImage::Format QNativeImage::systemFormat() { -#ifdef Q_WS_QPA - return QApplicationPrivate::platformIntegration()->screens().at(0)->format(); -#else - return QImage::Format_RGB32; -#endif + return QGuiApplicationPrivate::platformIntegration()->screens().at(0)->format(); } #endif // platforms |