summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-15 17:11:11 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-15 17:11:11 (GMT)
commit7455ba4fdc82bc8e7174184090ddfbf03c312446 (patch)
tree4c30852ee30c8974b2482c5525dc8046a4d0cb52 /src/plugins/gfxdrivers
parentf95d5bde3ba66dd182802addd15dabbfa85611e1 (diff)
parent42dda19d82ceea48f19d356cfaf2b26acb763df8 (diff)
downloadQt-7455ba4fdc82bc8e7174184090ddfbf03c312446.zip
Qt-7455ba4fdc82bc8e7174184090ddfbf03c312446.tar.gz
Qt-7455ba4fdc82bc8e7174184090ddfbf03c312446.tar.bz2
Merge remote branch 'qt/master' into staging-2-master
Conflicts: tests/auto/qlineedit/tst_qlineedit.cpp
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
index f27440e..ba50329 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp
@@ -593,6 +593,17 @@ void QDirectFBPixmapData::invalidate()
imageFormat = QImage::Format_Invalid;
}
+#ifndef QT_DIRECTFB_PLUGIN
+Q_GUI_EXPORT IDirectFBSurface *qt_directfb_surface_for_pixmap(const QPixmap &pixmap)
+{
+ const QPixmapData *data = pixmap.pixmapData();
+ if (!data || data->classId() != QPixmapData::DirectFBClass)
+ return 0;
+ const QDirectFBPixmapData *dfbData = static_cast<const QDirectFBPixmapData*>(data);
+ return dfbData->directFBSurface();
+}
+#endif
+
QT_END_NAMESPACE
#endif // QT_NO_QWS_DIRECTFB