diff options
Diffstat (limited to 'src/gui/painting/qcolormap_qpa.cpp')
-rw-r--r-- | src/gui/painting/qcolormap_qpa.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/painting/qcolormap_qpa.cpp b/src/gui/painting/qcolormap_qpa.cpp index 31fc41b94d..282841aa76 100644 --- a/src/gui/painting/qcolormap_qpa.cpp +++ b/src/gui/painting/qcolormap_qpa.cpp @@ -42,7 +42,7 @@ #include "qcolormap.h" #include "qcolor.h" #include "qpaintdevice.h" -#include "private/qguiapplication_p.h" +#include "qscreen.h" QT_BEGIN_NAMESPACE @@ -66,10 +66,7 @@ void QColormap::initialize() { screenMap = new QColormapPrivate; - QPlatformIntegration *pi = QGuiApplicationPrivate::platformIntegration(); - QList<QPlatformScreen*> screens = pi->screens(); - - screenMap->depth = screens.at(0)->depth(); + screenMap->depth = QGuiApplication::primaryScreen()->depth(); if (screenMap->depth < 8) { screenMap->mode = QColormap::Indexed; screenMap->numcolors = 256; |