KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
KDDockWidgets.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 "Config.h"
13#include "kddockwidgets/KDDockWidgets.h"
14#include "core/layouting/Item_p.h"
15#include "core/Platform.h"
16
17#ifdef KDDW_FRONTEND_QTWIDGETS
18#include "qtwidgets/Platform.h"
19#endif
20
21#ifdef KDDW_FRONTEND_QTQUICK
22#include "qtquick/Platform.h"
23#endif
24
25#ifdef KDDW_FRONTEND_FLUTTER
26#include "flutter/Platform.h"
27#endif
28
29using namespace KDDockWidgets;
30
32{
34 return;
35
36 switch (type) {
37 case FrontendType::QtWidgets:
38#ifdef KDDW_FRONTEND_QTWIDGETS
40#endif
41 break;
42 case FrontendType::QtQuick:
43#ifdef KDDW_FRONTEND_QTQUICK
45#endif
46 break;
47 case FrontendType::Flutter:
48 // Nothing to do, called from Dart
49 break;
50 }
51}
52
54{
55 return "com.kdab.kddockwidgets";
56}
57
59
63
68
70 : preferredSize(size)
71{
72}
73
75 : visibility(v)
76 , preferredSize(size)
77{
78}
79
81 : sizeMode(mode)
82{
83}
Application-wide config to tune certain behaviours of the framework.
static Platform * instance()
Returns the platform singleton.
implements functions specific to a particular platform A platform can be for example qtwidgets,...
implements functions specific to a particular platform A platform can be for example qtwidgets,...
Class to abstract QAction, so code still works with QtQuick and Flutter.
void DOCKS_EXPORT initFrontend(FrontendType)
Initializes the desired frontend This function should be called before using any docking....
DOCKS_EXPORT const char * spdlogLoggerName()
static NeighbourSqueezeStrategy s_defaultNeighbourSqueezeStrategy

© 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