summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2022-10-05 00:37:55 +0200
committerAhmad Samir <a.samirh78@gmail.com>2022-10-14 23:48:31 +0200
commit39bd9d45baf47d2a6bab9f9e7e5c865c788d5a4b (patch)
tree48e9c1c1da6aa99e19a271739696096d4ddedd63 /src/widgets/widgets
parentc3dccfef22267c2f78438973a39bc91260d96582 (diff)
QTabBar: add note about hidding the close button
Drive-by change: improve another sentence. Change-Id: Iaefa9d9eca95e1ce39e566e4b91ec9ed82410323 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r--src/widgets/widgets/qtabbar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp
index 155dd80337..0b1190ebf1 100644
--- a/src/widgets/widgets/qtabbar.cpp
+++ b/src/widgets/widgets/qtabbar.cpp
@@ -2752,10 +2752,11 @@ void QTabBar::setChangeCurrentOnDrag(bool change)
/*!
Sets \a widget on the tab \a index. The widget is placed
- on the left or right hand side depending upon the \a position.
+ on the left or right hand side depending on the \a position.
\since 4.5
- Any previously set widget in \a position is hidden.
+ Any previously set widget in \a position is hidden. Setting \a widget
+ to \nullptr will hide the current widget at \a position.
The tab bar will take ownership of the widget and so all widgets set here
will be deleted by the tab bar when it is destroyed unless you separately