From 39bd9d45baf47d2a6bab9f9e7e5c865c788d5a4b Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Wed, 5 Oct 2022 00:37:55 +0200 Subject: [PATCH] QTabBar: add note about hidding the close button Drive-by change: improve another sentence. Change-Id: Iaefa9d9eca95e1ce39e566e4b91ec9ed82410323 Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qtabbar.cpp | 5 +++-- 1 file 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