KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
flutter/views/Group.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
19#include "Group.h"
20
21#include "kddockwidgets/core/Group.h"
22#include "kddockwidgets/core/Stack.h"
23#include "kddockwidgets/core/TitleBar.h"
24#include "kddockwidgets/core/DockWidget.h"
25#include "core/DockWidget_p.h"
26
27#include "flutter/ViewFactory.h"
28#include "flutter/Platform.h"
30
31#include "Stack.h"
32
33#include "Config.h"
34#include "core/ViewFactory.h"
35#include "core/WidgetResizeHandler_p.h"
36
37using namespace KDDockWidgets;
38using namespace KDDockWidgets::flutter;
39
40Group::Group(Core::Group *controller, Core::View *parent)
41 : View(controller, Core::ViewType::Frame, parent)
42 , GroupViewInterface(controller)
43{
44}
45
47{
48}
49
51{
52 return 0;
53}
54
55Size Group::minSize() const
56{
57 const Size contentsSize = m_group->dockWidgetsMinSize();
58 return contentsSize + Size(0, nonContentsHeight());
59}
60
62{
63 return View::maxSizeHint();
64}
65
67{
68 return 0;
69}
70
71Rect Group::dragRect() const
72{
73 // Not implemented for flutter
74 return {};
75}
Application-wide config to tune certain behaviours of the framework.
Size dockWidgetsMinSize() const
Returns the minimum size of the dock widgets. This might be slightly smaller than Frame::minSize() du...
Size maxSizeHint() const override
Reimplemented for internal purposes. .
int nonContentsHeight() const override
Returns the height of the "non-dockwidget" part. i.e.: the height of the titlebar (if any),...
Rect dragRect() const override
the rect that should start a drag. Only relevant if the title bar isn't visible. For normal KDDW usag...
Size minSize() const override
Reimplemented for internal purposes. .
Group(Core::Group *controller, Core::View *parent=nullptr)
A factory class for allowing the user to customize some internal widgets.
Represents a dock widget.
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