KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
flutter/views/MainWindow.cpp
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2023 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 "MainWindow.h"
13#include "kddockwidgets/core/MainWindow.h"
14#include "core/Logging_p.h"
15
16using namespace KDDockWidgets;
17using namespace KDDockWidgets::flutter;
18
19MainWindow::MainWindow(const QString &uniqueName, MainWindowOptions options,
20 flutter::View *parent, Qt::WindowFlags flags)
21 : View(new Core::MainWindow(this, uniqueName, options), Core::ViewType::MainWindow, parent,
22 flags)
23 , MainWindowViewInterface(static_cast<Core::MainWindow *>(View::controller()))
24{
25}
26
28{
29}
30
32{
33 KDDW_WARN("MainWindow::centerWidgetMargins: SideBar hasn't been implemented yet");
34 return {};
35}
36
38{
39 KDDW_WARN("MainWindow::centralAreaGeometry: hasn't been implemented");
40 return {};
41}
42
43void MainWindow::setContentsMargins(int left, int top, int right, int bottom)
44{
45 KDDW_UNUSED(left);
46 KDDW_UNUSED(right);
47 KDDW_UNUSED(top);
48 KDDW_UNUSED(bottom);
49 KDDW_WARN("MainWindow::setContentsMargins: hasn't been implemented");
50}
#define KDDW_UNUSED(name)
MainWindow(const QString &uniqueName, MainWindowOptions options={}, flutter::View *parent=nullptr, Qt::WindowFlags flags={})
void setContentsMargins(int left, int top, int right, int bottom) override
Rect centralAreaGeometry() const override
Margins centerWidgetMargins() const override
ViewType
Each View type also has a specific Controller associated with, except for ViewType::None.
Definition Controller.h:26
Class to abstract QAction, so code still works with QtQuick and Flutter.
typedef WindowFlags
QMainWindow sub-class to enable KDDockWidgets support.

© 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