diff --git a/src/MDIArea.cpp b/src/MDIArea.cpp index a2bb43b2..0795c882 100644 --- a/src/MDIArea.cpp +++ b/src/MDIArea.cpp @@ -81,3 +81,8 @@ void MDIArea::resizeDockWidget(DockWidgetBase *dw, QSize size) { d->layoutWidget->resizeDockWidget(dw, size); } + +QList MDIArea::frames() const +{ + return d->layoutWidget->frames(); +} diff --git a/src/MDIArea.h b/src/MDIArea.h index a221334d..84332f8a 100644 --- a/src/MDIArea.h +++ b/src/MDIArea.h @@ -22,6 +22,7 @@ namespace KDDockWidgets { class MDILayoutWidget; class DockWidgetBase; +class Frame; /** * @brief MDIArea allows to host dock widget in MDI mode. @@ -48,6 +49,10 @@ public: /// @brief Sets the size of dock widget @p dw to @p size void resizeDockWidget(DockWidgetBase *dw, QSize size); + /// @brief Returns the list of frames in this MDI Area + /// Each Frame object represents a 'window' emebedded in the MDI Area + QList frames() const; + private: class Private; Private *const d;