qt5base-lts/tests/auto
Axel Spoerl e03bc88a80 QDockWidgetGroupWindow::adjustFlags() - don't show() empty group window
The method calls show() on a dock widget group window, when the window
flags have changed. When all of its contained, tabbed dock widgets are
programmatically hidden or docked on the main window, an empty group
window is shown.

This patch implements bool hasVisibleDockWidgets(). It returns true, if
at least one of the group window's dockwidget children is not hidden.
It replaces show() by setVisible(), passing the return value of
hasVisibleChildren().

It adapts tst_QDockWidget::floatingTabs() to test the fix.
(Drive-by: remove dead code)

Fixes: QTBUG-115058
Pick-to: 6.6 6.5 6.2
Change-Id: Ifb8e2450e91a7c78decc06f592e160631ca2faf5
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-08-15 10:47:28 +02:00
..
bic/data Add binary compatibility file built against 6.5.0 2023-04-19 15:40:36 +00:00
cmake CMake: Place resources into static libraries, not object libraries 2023-08-14 14:05:32 +02:00
concurrent CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
corelib QXmlStreamReader::readNextStartElement() - return false on document end 2023-08-15 07:16:31 +02:00
dbus dbus test headers: port away from Q_FOREACH 2023-08-13 09:19:22 +03:00
gui Deprecate Q_ASSUME() 2023-08-14 17:36:37 -07:00
guiapplauncher Move Weather Anchor Layout example to manual tests 2023-03-02 05:55:57 +01:00
network tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
opengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
other tst_QAccessibilityLinux: port away from Q_FOREACH 2023-08-09 23:57:21 +02:00
printsupport tests: port assorted trivial uses of Q_FOREACH to ranged for loops 2023-08-14 23:11:54 +03:00
shared tests: remove PlatformInputContext::filterEvent() 2023-01-18 13:21:06 +01:00
sql tst_qvfssql: Don't use appless main 2023-08-11 15:45:36 +02:00
testlib Correct some testlib selftest data: blacklisted does not qFatal() 2023-07-31 18:16:05 +02:00
tools Fix registration of QtDBus types' metatypes 2023-08-14 20:19:36 -07:00
wasm CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
widgets QDockWidgetGroupWindow::adjustFlags() - don't show() empty group window 2023-08-15 10:47:28 +02:00
xml CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests/tools: only run qdbus{cpp2xml,xml2cpp} tests if D-Bus is available 2023-08-14 20:19:36 -07:00
network-settings.h