Minimal plugin works again.

This commit is contained in:
Paul Olav Tvete 2011-04-29 12:59:23 +02:00
parent 7dda80e1d0
commit c1aa42e195
2 changed files with 7 additions and 7 deletions

View File

@ -69,14 +69,14 @@ QPixmapData *QMinimalIntegration::createPixmapData(QPixmapData::PixelType type)
return new QRasterPixmapData(type);
}
QPlatformWindow *QMinimalIntegration::createPlatformWindow(QWidget *widget, WId winId) const
QPlatformWindow *QMinimalIntegration::createPlatformWindow(QWindow *window) const
{
Q_UNUSED(winId);
return new QPlatformWindow(widget);
Q_UNUSED(window);
return new QPlatformWindow(window);
}
QWindowSurface *QMinimalIntegration::createWindowSurface(QWidget *widget, WId winId) const
QWindowSurface *QMinimalIntegration::createWindowSurface(QWindow *window, WId winId) const
{
Q_UNUSED(winId);
return new QMinimalWindowSurface(widget);
return new QMinimalWindowSurface(window->widget());
}

View File

@ -72,8 +72,8 @@ public:
bool hasCapability(QPlatformIntegration::Capability cap) const;
QPixmapData *createPixmapData(QPixmapData::PixelType type) const;
QPlatformWindow *createPlatformWindow(QWidget *widget, WId winId) const;
QWindowSurface *createWindowSurface(QWidget *widget, WId winId) const;
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QWindowSurface *createWindowSurface(QWindow *window, WId winId) const;
QList<QPlatformScreen *> screens() const { return mScreens; }