KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
MainWindowMDIViewInterface.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
14#include "core/MDILayout.h"
15
16using namespace KDDockWidgets;
17using namespace KDDockWidgets::Core;
18
20 : m_mdiLayout(layout)
21{
22}
23
25 InitialOption addingOption)
26{
27 DockWidget *dw = dockWidget ? dockWidget->dockWidget() : nullptr;
28 m_mdiLayout->addDockWidget(dw, localPos, addingOption);
29}
30
31#ifdef KDDW_FRONTEND_QT
33 QPointF localPos, InitialOption addingOption)
34{
35 addDockWidget(dockWidget, localPos.toPoint(), addingOption);
36}
37#endif
The interface that DockWidget views should implement.
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
The MDILayout class implements a layout suitable for MDI style docking. Where dock widgets are free t...
void addDockWidget(Core::DockWidget *dw, Point localPt, InitialOption addingOption={})
docks the dock widgets into this MDI area, at the specified position
void addDockWidget(DockWidgetViewInterface *dockWidget, Point localPos, InitialOption addingOption={})
Docks dockWidget The widget will be placed at the specified position.
Class to abstract QAction, so code still works with QtQuick and Flutter.
QPoint toPoint() const const
Struct describing the preferred dock widget size and visibility when adding it to a layout.

© 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