Added DockWidgetBase::mainWindow()

This commit is contained in:
Sergio Martins
2020-09-18 17:20:41 +01:00
parent f3f812205d
commit c8eaf88cf1
2 changed files with 8 additions and 1 deletions

View File

@@ -320,7 +320,6 @@ public:
*/
bool isMainWindow() const;
/**
* @brief Returns whether this dock widget is docked into a main window.
*
@@ -330,6 +329,9 @@ public:
*/
bool isInMainWindow() const;
/// @brief Returns the main window this dock widget is in. nullptr if it's not inside a main window
MainWindowBase *mainWindow() const;
///@brief Returns whether This or any child of this dock widget is focused
///Not to be confused with QWidget::hasFocus(), which just refers to 1 widget. This includes
///variant includes children.