summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qvfb
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-04-21 06:28:30 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-04-21 06:32:52 (GMT)
commit66e4d48129d6baa405ed9a4a22b12913227a8c45 (patch)
tree358f8515f6a83d33e2f89942e2d0f358452f6fdd /src/plugins/platforms/qvfb
parenta43355f7d10a72f60719f7e5a617bcd0031f8fba (diff)
downloadQt-66e4d48129d6baa405ed9a4a22b12913227a8c45.zip
Qt-66e4d48129d6baa405ed9a4a22b12913227a8c45.tar.gz
Qt-66e4d48129d6baa405ed9a4a22b12913227a8c45.tar.bz2
Renamed createWindowSurfaceForWindow
to createWindowSurface. Gave also a default dpi when there is no platform integration, ie. it has not been initialised yet or is being initialised.
Diffstat (limited to 'src/plugins/platforms/qvfb')
-rw-r--r--src/plugins/platforms/qvfb/qvfbintegration.cpp6
-rw-r--r--src/plugins/platforms/qvfb/qvfbintegration.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/platforms/qvfb/qvfbintegration.cpp b/src/plugins/platforms/qvfb/qvfbintegration.cpp
index 2a877e0..e22c724 100644
--- a/src/plugins/platforms/qvfb/qvfbintegration.cpp
+++ b/src/plugins/platforms/qvfb/qvfbintegration.cpp
@@ -421,10 +421,8 @@ QPixmapData *QVFbIntegration::createPixmapData(QPixmapData::PixelType type) cons
return new QRasterPixmapData(type);
}
-QWindowSurface *QVFbIntegration::createWindowSurfaceForWindow(QWidget *widget, WId) const
+QWindowSurface *QVFbIntegration::createWindowSurface(QWidget *widget, WId) const
{
- if (widget->windowType() == Qt::Desktop)
- return 0; // Don't create an explicit window surface for the destkop.
return new QVFbWindowSurface(mPrimaryScreen, widget);
}
@@ -436,4 +434,4 @@ QPlatformWindow *QVFbIntegration::createPlatformWindow(QWidget *widget, WId) con
QT_END_NAMESPACE
-#include "qgraphicssystem_qvfb.moc"
+#include "qvfbintegration.moc"
diff --git a/src/plugins/platforms/qvfb/qvfbintegration.h b/src/plugins/platforms/qvfb/qvfbintegration.h
index 1207678..ab44d46 100644
--- a/src/plugins/platforms/qvfb/qvfbintegration.h
+++ b/src/plugins/platforms/qvfb/qvfbintegration.h
@@ -80,7 +80,7 @@ public:
QPixmapData *createPixmapData(QPixmapData::PixelType type) const;
QPlatformWindow *createPlatformWindow(QWidget *widget, WId winId) const;
- QWindowSurface *createWindowSurfaceForWindow(QWidget *widget, WId winId) const;
+ QWindowSurface *createWindowSurface(QWidget *widget, WId winId) const;
QList<QPlatformScreen *> screens() const { return mScreens; }