diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2023-06-15 15:13:44 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-06-16 09:21:34 +0200 |
commit | 7993321e7620941f3106acb977243c51aa27ceec (patch) | |
tree | 6972b8cbfa5c25a0e08c157266e60c3473cca88a /src/widgets/widgets/qdockwidget.h | |
parent | 8da8126bae030c7ab33ca02b7ef816b667a6cdb0 (diff) |
Update documentation of signal QDockWidget::visibilityChanged
The signal can deviate from QWidget::isVisible().
This patch clarifies the signal's documentation.
Since its name suggests that it is in sync with QWidget::isVisible(),
A TODO comment is added to consider deprication in Qt7.
It appears to be more reliable to listen to hide/show events.
Pick-to: 6.6 6.5
Fixes: QTBUG-48161
Change-Id: I43aa16c2ecb4877abd8effb7da8e07576438d6d2
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/widgets/qdockwidget.h')
-rw-r--r-- | src/widgets/widgets/qdockwidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qdockwidget.h b/src/widgets/widgets/qdockwidget.h index f524a88423..8123bbb729 100644 --- a/src/widgets/widgets/qdockwidget.h +++ b/src/widgets/widgets/qdockwidget.h @@ -72,7 +72,7 @@ Q_SIGNALS: void featuresChanged(QDockWidget::DockWidgetFeatures features); void topLevelChanged(bool topLevel); void allowedAreasChanged(Qt::DockWidgetAreas allowedAreas); - void visibilityChanged(bool visible); + void visibilityChanged(bool visible); //TODO depricate in Qt7: Better listen to hide/show events void dockLocationChanged(Qt::DockWidgetArea area); protected: |