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>
bb10
Ahmad Samir 2022-10-05 00:37:55 +02:00
parent c3dccfef22
commit 39bd9d45ba
1 changed files with 3 additions and 2 deletions

View File

@ -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