Added DockWidgetBase::currentTabIndex()

This commit is contained in:
Sergio Martins
2022-05-05 10:39:52 +01:00
parent 2446519024
commit a743eafca1
3 changed files with 17 additions and 2 deletions

View File

@@ -266,12 +266,18 @@ public:
*/
Q_INVOKABLE void setAsCurrentTab();
/**
* @brief Returns which tab index this dock widget occupies in the tab widget it's contained in
* @brief Returns the tab index this dock widget occupies
* Note that dock widgets are almost always tabbed, even if you don't see the tab bar.
* A single floating dock widget is still tabbed on a tab widget with a single tab.
*/
int tabIndex() const;
/**
* @brief Returns the index of the current tab of the tab group this dock widget is in.
*/
int currentTabIndex() const;
/**
* @brief Sets an icon to show on title bars and tab bars.
* @param places Specifies where the icon will be shown (TitleBar, TabBar, ToggleAction, or All)