From 92b5992a29e6a5463200157ab9934fae9a3ec8cb Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Mon, 4 Dec 2023 10:32:25 +0100 Subject: [PATCH] QDockWidget: Clarify documentation of floating property QDockWidget::isFloating() returns true for single, floating dock widgets. It returns false, if the dock widget is part of a floating tab (i.e. it is a QDockWidgetGroupWindow child). => Clarify documentation. Pick-to: 6.7 6.6 6.5 Change-Id: I3c5a4a86b89dcb001e7561de7dcc604bae0d9cee Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qdockwidget.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index a9b65a2e1c1..2699d43d7e3 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -1434,9 +1434,12 @@ QDockWidget::DockWidgetFeatures QDockWidget::features() const \property QDockWidget::floating \brief whether the dock widget is floating - A floating dock widget is presented to the user as an independent - window "on top" of its parent QMainWindow, instead of being - docked in the QMainWindow. + A floating dock widget is presented to the user as a single, independent + window "on top" of its parent QMainWindow, instead of being docked + either in the QMainWindow, or in a group of tabbed dock widgets. + + Floating dock widgets can be individually positioned and resized, both + programmatically or by mouse interaction. By default, this property is \c true.