qt6-bb10/tests/auto/widgets
Axel Spoerl a910daf526 QDockWidget::setFloating() - reparent floating tab to main window
setFloating() called on the 2nd last dock widget in a floating tab
didn't cause reparenting to the main window. The dock widget remained
parented to a QDockWidgetGroupWindow, while no longer being part of
floating tabs. The QDockWidgetGroupWindow would therefore have only
one tab, which is an inconsistent state and causes crashes.

Factor out the implementation of setFloating() to a new
QDockWidgetPrivate::setFloating(). Reparent to the main window, if
the dock widget is part of floating tabs.

Add test functionality in tst_QDockWidget::setFloating().
Turn createFloatingTabs() into a macro, in order to QSKIP() in the test
function's scope.

Fixes: QTBUG-122394
Pick-to: 6.7 6.5
Change-Id: I3719785f310b131446cdea908f09b7195c992b3e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-05-28 15:41:15 +02:00
..
dialogs tst_QFileDialog2::dontShowCompleterOnRoot() remove setActiveWindow() 2024-04-26 18:59:53 +02:00
effects Change license for tests files 2024-02-04 09:56:42 +01:00
graphicsview QSizeF: add qFuzzyCompare and qFuzzyIsNull overloads 2024-05-14 14:33:21 +02:00
itemviews QTBUG14363_completerWithAnyKeyPressedEditTriggers remove setActiveWindo 2024-04-30 21:28:22 +02:00
kernel Widgets focus abstraction: Fix re-parenting 2024-05-23 01:12:32 +02:00
styles QTBUG36933_brokenPseudoClassLookup() remove setActiveWindow() 2024-04-26 18:19:38 +02:00
util QCompleter: Hide popup when widget is hidden 2024-04-30 16:30:16 +00:00
widgets QDockWidget::setFloating() - reparent floating tab to main window 2024-05-28 15:41:15 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00