|
KDDockWidgets API Documentation
1.6
|
Go to the documentation of this file.
14 #include "private/MDILayoutWidget_p.h"
15 #include "private/DropAreaWithCentralFrame_p.h"
17 #ifdef KDDOCKWIDGETS_QTWIDGETS
19 #include <QVBoxLayout>
24 #include <QGuiApplication>
25 #include <QCloseEvent>
29 class MDIArea::Private
33 : layoutWidget(new MDILayoutWidget(parent))
42 MDILayoutWidget *
const layoutWidget;
46 : QWidgetAdapter(parent)
47 , d(new Private(this))
49 #ifdef KDDOCKWIDGETS_QTWIDGETS
51 vlay->setContentsMargins({});
52 vlay->addWidget(d->layoutWidget);
54 QWidgetAdapter::makeItemFillParent(d->layoutWidget);
68 auto dropAreaWrapper =
new DropArea(wrapperDW,
true);
70 wrapperDW->setWidget(dropAreaWrapper);
75 d->layoutWidget->addDockWidget(dw, localPt, addingOption);
80 d->layoutWidget->moveDockWidget(dw, pos);
85 d->layoutWidget->resizeDockWidget(dw, size);
90 return d->layoutWidget->frames();
98 for (Frame *frame :
frames) {
99 qApp->sendEvent(frame, e);
bool isAccepted() const const