Por all usages of QWindop/windowHandle to KDDockWidgets::Window
Removes a lot of asQWidget() code and is also prepared for non-Qt views.
This commit is contained in:
@@ -179,8 +179,8 @@ void Stack_qtwidgets::setupTabBarButtons()
|
||||
});
|
||||
|
||||
updateMargins();
|
||||
connect(DockRegistry::self(), &DockRegistry::windowChangedScreen, this, [this](QWindow *w) {
|
||||
if (w == window()->windowHandle())
|
||||
connect(DockRegistry::self(), &DockRegistry::windowChangedScreen, this, [this](Window::Ptr w) {
|
||||
if (isInWindow(w))
|
||||
updateMargins();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user