diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-04-21 06:28:30 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-04-21 06:32:52 (GMT) |
commit | 66e4d48129d6baa405ed9a4a22b12913227a8c45 (patch) | |
tree | 358f8515f6a83d33e2f89942e2d0f358452f6fdd /src/plugins/platforms/qvfb/qvfbintegration.cpp | |
parent | a43355f7d10a72f60719f7e5a617bcd0031f8fba (diff) | |
download | Qt-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/qvfbintegration.cpp')
-rw-r--r-- | src/plugins/platforms/qvfb/qvfbintegration.cpp | 6 |
1 files changed, 2 insertions, 4 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" |