qt5base-lts/tests/auto/gui/kernel
Jan Arve Sæther e7477e8934 Update window geometry when QWindow::m{in|ax}imumSize is updated
More specifically, if either minimum or maximum size are updated, make
sure that the current window geometry is updated so that it is within
the minimum and maximum sizes.

Previously, these constraints was only respected by the window manager
when the user resized the window.

For widgets this already worked, because a top-level widget will take
care of respecting these constraints if they are changed.

Since QWindow::setMinimumSize and QWindow::setMaximumSize started to
share so many common things, a new function (setMinOrMaxSize_helper())
is added.

Task-number: QTBUG-102771
Change-Id: Ia4b2680dcf865f84a3cf6424187f9a6036b76386
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-06-13 09:19:17 +02:00
..
noqteventloop Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaction Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qactiongroup Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qaddpostroutine Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbackingstore Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qclipboard Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcursor Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdrag Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfileopenevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguiapplication Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguieventdispatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qguieventloop Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qguimetatype Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qguitimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qguivariant Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qhighdpi Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qinputdevice Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qinputmethod Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeyevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qkeysequence QKeySequence: Add missing modifier names 2022-05-25 13:00:02 +00:00
qmouseevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmouseevent_modal Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglwindow Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpalette Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpixelformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qrasterwindow Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qscreen Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qshortcut Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsurfaceformat Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtouchevent Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qwindow Update window geometry when QWindow::m{in|ax}imumSize is updated 2022-06-13 09:19:17 +02:00
CMakeLists.txt CMake: Add BUILTIN_TESTDATA option to qt_internal_add_test 2022-02-11 21:54:44 +01:00