Added MDIArea::frames()

This commit is contained in:
Sergio Martins
2022-01-14 18:09:00 +00:00
parent 18457d80aa
commit 66b0ba8902
2 changed files with 10 additions and 0 deletions

View File

@@ -81,3 +81,8 @@ void MDIArea::resizeDockWidget(DockWidgetBase *dw, QSize size)
{
d->layoutWidget->resizeDockWidget(dw, size);
}
QList<Frame *> MDIArea::frames() const
{
return d->layoutWidget->frames();
}

View File

@@ -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<Frame *> frames() const;
private:
class Private;
Private *const d;