Added DockWidgetBase::isMainWindow()

This commit is contained in:
Sergio Martins
2020-05-21 10:54:42 +01:00
parent de09d5532f
commit d4d83111ff
2 changed files with 17 additions and 0 deletions

View File

@@ -292,6 +292,18 @@ public:
/// This only applies if the dock widget is already open. If closed, does nothing.
void raise();
/**
* @brief Returns whether widget() is a KDDockWidget::MainWindow
*
* This function doesn't have anything to do with this dock widget being inside a main window or
* not, but rather the inverse concept. It's not a very popular usage, but some applications
* want to dock a main window into another main window. This is done by putting it into a
* dock widget first.
*
* See also kddockwidgets_example -j
*/
bool isMainWindow() const;
Q_SIGNALS:
///@brief signal emitted when the parent changed
void parentChanged();