Minimal plugin works again.
This commit is contained in:
parent
7dda80e1d0
commit
c1aa42e195
@ -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());
|
||||
}
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user