qt5base-lts/tests/auto/widgets
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
..
dialogs tst_QWizard: port from QSharedPointer to std::shared_ptr 2023-08-14 23:11:54 +03:00
effects CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
graphicsview QtWidgets tests: port remaining users away from Q_FOREACH 2023-08-14 23:11:54 +03:00
itemviews QAbstractScrollArea: Don't include size of invisible scrollbars 2023-07-11 01:34:19 +02:00
kernel QtWidgets tests: port remaining users away from Q_FOREACH 2023-08-14 23:11:54 +03:00
styles CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
util CMake: Make widgets 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
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00