KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
flutter/views/DockWidget.h
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#pragma once
13
21#include "kddockwidgets/core/views/DockWidgetViewInterface.h"
22#include "View.h"
23
24namespace KDDockWidgets {
25
26namespace Core {
27class Group;
28class TitleBar;
29}
30
31namespace flutter {
37class DOCKS_EXPORT DockWidget : public flutter::View,
39{
40public:
53 explicit DockWidget(const QString &uniqueName, DockWidgetOptions options = {},
54 LayoutSaverOptions layoutSaverOptions = {});
55
57 ~DockWidget() override;
58
60 Size minSize() const override;
61
63 Size maxSizeHint() const override;
64
65 Core::DockWidget *dockWidget() const;
66 std::shared_ptr<Core::View> focusCandidate() const override;
67
68 void show() override
69 {
70 Core::DockWidgetViewInterface::open();
71 }
72
73 void raise() override
74 {
75 Core::DockWidgetViewInterface::raise();
76 }
77
78protected:
79 void init() override;
80};
81
82}
83}
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...
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