tests: make xembed/qt-client-raster better
Pick-to: 6.4 6.3 6.2 5.15 Change-Id: Id45bcfb92eb24c4455cf50497e28312eb87e0f9a Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
a0ec35d5f2
commit
cef9cbdd52
@ -18,12 +18,12 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
RasterWindow window;
|
RasterWindow window;
|
||||||
window.show();
|
|
||||||
|
|
||||||
QWindow *foreign = QWindow::fromWinId(winId);
|
QWindow *foreign = QWindow::fromWinId(winId);
|
||||||
Q_ASSERT(foreign != 0);
|
Q_ASSERT(foreign != 0);
|
||||||
|
|
||||||
window.setParent(foreign);
|
window.setParent(foreign);
|
||||||
|
window.show();
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@ RasterWindow::RasterWindow(QWindow *parent)
|
|||||||
: QWindow(parent)
|
: QWindow(parent)
|
||||||
, m_update_pending(false)
|
, m_update_pending(false)
|
||||||
{
|
{
|
||||||
|
winId();
|
||||||
|
|
||||||
m_backingStore = new QBackingStore(this);
|
m_backingStore = new QBackingStore(this);
|
||||||
create();
|
create();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user