KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
MultiSplitterConfig.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2020-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#pragma once
13
14#include "kddockwidgets/docks_export.h"
15
16#include <qglobal.h>
17
18namespace Layouting {
19
20class Separator;
21class Widget;
22
23typedef Separator *(*SeparatorFactoryFunc)(Layouting::Widget *parent);
24
25class DOCKS_EXPORT_FOR_UNIT_TESTS Config
26{
27public:
28 enum class Flag {
29 None = 0,
30 LazyResize = 1
31 };
32 Q_DECLARE_FLAGS(Flags, Flag)
33
34
35 static Config &self();
36
38 ~Config();
39
45 int separatorThickness() const;
46
49 void setSeparatorThickness(int value);
50
52 void setSeparatorFactoryFunc(SeparatorFactoryFunc);
53
55 SeparatorFactoryFunc separatorFactoryFunc() const;
56
58 Config::Flags flags() const;
59
61 void setFlags(Flags);
62
63private:
64 friend class Item;
65 friend class ItemBoxContainer;
66
67 Config();
68 Separator *createSeparator(Layouting::Widget *) const;
69
70 void registerQmlTypes();
71
72 SeparatorFactoryFunc m_separatorFactoryFunc = nullptr;
73 Flags m_flags = Flag::None;
74
75 Q_DISABLE_COPY(Config)
76};
77
78}
An abstraction/wrapper around QWidget, QtQuickItem or anything else.
Definition Widget.h:77
Separator *(* SeparatorFactoryFunc)(Layouting::Widget *parent)

© 2019-2023 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 Wed Nov 1 2023 00:02:31 for KDDockWidgets API Documentation by doxygen 1.9.8