qt5: handle 'Qt::WindowMaximized' and 'Qt::WindowFullScreen'
Fixes #2952
This commit is contained in:
parent
601521c47a
commit
aa1488c768
|
@ -548,7 +548,14 @@ void QNitpickerPlatformWindow::setWindowState(Qt::WindowState state)
|
|||
{
|
||||
if (qnpw_verbose)
|
||||
qDebug() << "QNitpickerPlatformWindow::setWindowState(" << state << ")";
|
||||
|
||||
QPlatformWindow::setWindowState(state);
|
||||
|
||||
if ((state == Qt::WindowMaximized) || (state == Qt::WindowFullScreen)) {
|
||||
QRect screen_geometry { screen()->geometry() };
|
||||
QWindowSystemInterface::handleGeometryChange(window(), screen_geometry);
|
||||
setGeometry(screen_geometry);
|
||||
}
|
||||
}
|
||||
|
||||
WId QNitpickerPlatformWindow::winId() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user