KDDockWidgets API Documentation
1.5
source
src
private
multisplitter
MultiSplitterConfig.h
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2020-2022 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
14
#include "kddockwidgets/docks_export.h"
15
16
#include <qglobal.h>
17
18
namespace
Layouting
{
19
20
class
Separator
;
21
class
Widget
;
22
23
typedef
Separator
*(*SeparatorFactoryFunc)(
Layouting::Widget
*parent);
24
25
class
DOCKS_EXPORT_FOR_UNIT_TESTS
Config
26
{
27
public
:
28
enum class
Flag
29
{
30
None = 0,
31
LazyResize = 1
32
};
33
Q_DECLARE_FLAGS
(Flags,
Flag
);
34
36
static
Config
&
self
();
37
39
~
Config
();
40
46
int
separatorThickness()
const
;
47
50
void
setSeparatorThickness(
int
value);
51
53
void
setSeparatorFactoryFunc(
SeparatorFactoryFunc
);
54
56
SeparatorFactoryFunc
separatorFactoryFunc()
const
;
57
59
Config::Flags flags()
const
;
60
62
void
setFlags(Flags);
63
64
private
:
65
friend
class
Item;
66
friend
class
ItemBoxContainer
;
67
68
Config
();
69
Separator
*createSeparator(
Layouting::Widget
*)
const
;
70
71
void
registerQmlTypes
();
72
73
SeparatorFactoryFunc
m_separatorFactoryFunc =
nullptr
;
74
Flags m_flags = Flag::None;
75
76
Q_DISABLE_COPY(
Config
);
77
};
78
79
}
KDDockWidgets::registerQmlTypes
void registerQmlTypes()
Definition:
QmlTypes.cpp:26
ItemBoxContainer
Layouting::SeparatorFactoryFunc
Separator *(* SeparatorFactoryFunc)(Layouting::Widget *parent)
Definition:
MultiSplitterConfig.h:23
Separator
Qt::Widget
Widget
Layouting::Widget
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition:
Widget.h:79
Layouting::Config::Q_DECLARE_FLAGS
Q_DECLARE_FLAGS(Flags, Flag)
Layouting::Config::Flag
Flag
Definition:
MultiSplitterConfig.h:29
Layouting
Definition:
FrameworkWidgetFactory.h:32
Layouting::Config
Definition:
MultiSplitterConfig.h:26
© 2019-2022 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 on Mon Mar 7 2022 02:01:20 for KDDockWidgets API Documentation by doxygen 1.8.20