Renamed View::windowHandle() to View::window()

windowHandle() is missnamed in Qt because QWidget::window() was already
taken in Qt4. But we can make it better here.
This commit is contained in:
Sergio Martins
2022-05-01 23:09:18 +01:00
parent 0d02be6387
commit 3fabf34bee
29 changed files with 98 additions and 98 deletions

View File

@@ -86,8 +86,8 @@ bool FloatingWindow_qtwidgets::event(QEvent *ev)
} else if (ev->type() == QEvent::Show && !m_screenChangedConnection.isActive()) {
// We connect after QEvent::Show, so we have a QWindow. Qt doesn't offer much API to
// intercept screen events
m_screenChangedConnection = windowHandle()->screenChanged.connect([this] {
Q_EMIT DockRegistry::self()->windowChangedScreen(windowHandle());
m_screenChangedConnection = window()->screenChanged.connect([this] {
Q_EMIT DockRegistry::self()->windowChangedScreen(window());
});
} else if (ev->type() == QEvent::ActivationChange) {
// Since QWidget is missing a signal for window activation