Added MDIArea::frames()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user