@@ -85,7 +85,7 @@ void ProxyWindowBase::onReload(QObject* oldInstance) {
85
85
86
86
if (wasVisible && this ->isVisibleDirect ()) {
87
87
emit this ->backerVisibilityChanged ();
88
- this ->runLints ();
88
+ this ->onExposed ();
89
89
}
90
90
}
91
91
@@ -195,7 +195,7 @@ void ProxyWindowBase::connectWindow() {
195
195
QObject::connect (this ->window , &QWindow::heightChanged, this , &ProxyWindowBase::heightChanged);
196
196
QObject::connect (this ->window , &QWindow::screenChanged, this , &ProxyWindowBase::screenChanged);
197
197
QObject::connect (this ->window , &QQuickWindow::colorChanged, this , &ProxyWindowBase::colorChanged);
198
- QObject::connect (this ->window , &ProxiedWindow::exposed, this , &ProxyWindowBase::runLints );
198
+ QObject::connect (this ->window , &ProxiedWindow::exposed, this , &ProxyWindowBase::onExposed );
199
199
QObject::connect (this ->window , &ProxiedWindow::devicePixelRatioChanged, this , &ProxyWindowBase::devicePixelRatioChanged);
200
200
// clang-format on
201
201
}
@@ -283,10 +283,11 @@ void ProxyWindowBase::polishItems() {
283
283
// This hack manually polishes the item tree right before showing the window so it will
284
284
// always be created with the correct size.
285
285
QQuickWindowPrivate::get (this ->window )->polishItems ();
286
- this ->onPolished ();
287
286
}
288
287
289
- void ProxyWindowBase::runLints () {
288
+ void ProxyWindowBase::onExposed () {
289
+ this ->onPolished ();
290
+
290
291
if (!this ->ranLints ) {
291
292
qs::debug::lintItemTree (this ->mContentItem );
292
293
this ->ranLints = true ;
0 commit comments