KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
qtquick
views
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
16
using namespace
KDDockWidgets
;
17
using namespace
KDDockWidgets::QtQuick
;
18
19
MDILayout::MDILayout
(
Core::MDILayout
*controller,
Core::View
*parent)
20
:
QtQuick
::
View
(controller, Core::ViewType::
MDILayout
,
asQQuickItem
(parent))
21
, m_controller(controller)
22
{
23
Q_ASSERT(
controller
);
24
}
25
26
MDILayout::~MDILayout
()
27
{
28
if
(!
Core::View::d
->freed())
29
m_controller->
viewAboutToBeDeleted
();
30
}
31
32
void
MDILayout::setParent(
Core::View
*parent)
33
{
34
QtQuick::View::setParent
(parent);
35
if
(parent) {
36
makeItemFillParent
(
this
);
37
}
38
}
KDDockWidgets::Core::Layout::viewAboutToBeDeleted
void viewAboutToBeDeleted()
Definition
Layout.cpp:56
KDDockWidgets::Core::MDILayout
The MDILayout class implements a layout suitable for MDI style docking. Where dock widgets are free t...
Definition
core/MDILayout.h:33
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets::Core::View::d
Private *const d
Definition
core/View.h:257
KDDockWidgets::Core::View::controller
Controller * controller() const
Returns this view's controller.
Definition
core/View.cpp:199
KDDockWidgets::QtQuick::MDILayout
Definition
qtquick/views/MDILayout.h:30
KDDockWidgets::QtQuick::MDILayout::MDILayout
MDILayout(Core::MDILayout *controller, Core::View *parent)
Definition
qtquick/views/MDILayout.cpp:19
KDDockWidgets::QtQuick::MDILayout::~MDILayout
~MDILayout()
Definition
qtquick/views/MDILayout.cpp:26
KDDockWidgets::QtQuick::View
Definition
qtquick/views/View.h:53
KDDockWidgets::QtQuick::View::setParent
void setParent(Core::View *parent) override
Definition
qtquick/views/View.cpp:559
KDDockWidgets::QtQuick::View::makeItemFillParent
static void makeItemFillParent(QQuickItem *item)
This is equivalent to "anchors.fill: parent but in C++.
Definition
qtquick/views/View.cpp:402
KDDockWidgets::QtQuick
Definition
core/MainWindow.h:36
KDDockWidgets::QtQuick::asQQuickItem
QQuickItem * asQQuickItem(Core::View *view)
Definition
qtquick/views/View.h:34
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::FrontendType::QtQuick
@ QtQuick
MDILayout.h
© 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