summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-02-21 11:57:34 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-03-01 11:06:05 (GMT)
commit327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0 (patch)
treeddf41680fe506b07338797486e5412fe70e614c4 /src/gui/image/qpixmap.cpp
parentb67d537070e88feb708d13b46cd1468e2c0dc0e8 (diff)
downloadQt-327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0.zip
Qt-327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0.tar.gz
Qt-327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0.tar.bz2
added capabilites to QPlatformIntegration
Reviewed-by: Jørgen Lind
Diffstat (limited to 'src/gui/image/qpixmap.cpp')
-rw-r--r--src/gui/image/qpixmap.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp
index b276180..90d9a90 100644
--- a/src/gui/image/qpixmap.cpp
+++ b/src/gui/image/qpixmap.cpp
@@ -71,6 +71,10 @@
# include "private/qpixmap_mac_p.h"
#endif
+#ifdef Q_WS_QPA
+# include "qplatformintegration_qpa.h"
+#endif
+
#if defined(Q_WS_X11)
# include "qx11info_x11.h"
# include <private/qt_x11_p.h>
@@ -104,6 +108,11 @@ static bool qt_pixmap_thread_test()
#if defined (Q_WS_X11)
if (!QApplication::testAttribute(Qt::AA_X11InitThreads))
fail = true;
+#elif defined (Q_WS_QPA)
+ if (!QApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedPixmaps)) {
+ printf("Lighthouse plugin does not support threaded pixmaps!\n");
+ fail = true;
+ }
#else
if (QApplicationPrivate::graphics_system_name != QLatin1String("raster"))
fail = true;