KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
qtquick/views/MDILayout.cpp
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#include "MDILayout.h"
13#include "core/View_p.h"
14#include "kddockwidgets/core/MDILayout.h"
15
16using namespace KDDockWidgets;
17using namespace KDDockWidgets::QtQuick;
18
20 : QtQuick::View(controller, Core::ViewType::MDILayout, asQQuickItem(parent))
21 , m_controller(controller)
22{
23 Q_ASSERT(controller);
24}
25
27{
28 if (!Core::View::d->freed())
29 m_controller->viewAboutToBeDeleted();
30}
31
32void MDILayout::setParent(Core::View *parent)
33{
35 if (parent) {
37 }
38}
The MDILayout class implements a layout suitable for MDI style docking. Where dock widgets are free t...
Controller * controller() const
Returns this view's controller.
MDILayout(Core::MDILayout *controller, Core::View *parent)
void setParent(Core::View *parent) override
static void makeItemFillParent(QQuickItem *item)
This is equivalent to "anchors.fill: parent but in C++.
QQuickItem * asQQuickItem(Core::View *view)
Class to abstract QAction, so code still works with QtQuick and Flutter.

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8