Improve logging of QWindowContainer operations
By explicitly identifying the fake window created for the window container. Change-Id: Id67a6e22588d04e68f5ede09bc078bb387c12e0b Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
1931aedcf8
commit
52bd707f0d
@ -227,6 +227,12 @@ QWindowContainer::QWindowContainer(QWindow *embeddedWindow, QWidget *parent, Qt:
|
|||||||
embeddedWindow->setSurfaceType(QSurface::RasterGLSurface);
|
embeddedWindow->setSurfaceType(QSurface::RasterGLSurface);
|
||||||
|
|
||||||
d->window = embeddedWindow;
|
d->window = embeddedWindow;
|
||||||
|
|
||||||
|
QString windowName = d->window->objectName();
|
||||||
|
if (windowName.isEmpty())
|
||||||
|
windowName = QString::fromUtf8(d->window->metaObject()->className());
|
||||||
|
d->fakeParent.setObjectName(windowName + "ContainerFakeParent");
|
||||||
|
|
||||||
d->window->setParent(&d->fakeParent);
|
d->window->setParent(&d->fakeParent);
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user