Introduce DockWidget::setCurrentTab() and isCurrentTab()

This commit is contained in:
Sergio Martins
2019-06-28 14:23:03 +01:00
parent b7c8eba101
commit 3bba8acddb
3 changed files with 55 additions and 0 deletions

View File

@@ -162,6 +162,18 @@ public:
*/
bool isTabbed() const;
/**
* @brief Returns true if this dock widget is the current one in the tab widget that contains it.
*
* If the dock widget is alone then true is returned, as in this case there will also be a tab widget even though it's invisible.
*/
bool isCurrentTab() const;
/**
* @brief Makes this dock widget current in its tab group.
*/
void setAsCurrentTab();
Q_SIGNALS:
///@brief signal emitted when the parent changed
void parentChanged();