KDDockWidgets API Documentation
2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
j
l
m
o
p
q
r
s
t
v
w
Functions
a
b
c
f
g
i
j
l
m
o
p
q
r
s
t
w
Variables
a
r
s
Typedefs
Enumerations
Enumerator
a
c
d
f
l
m
r
s
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
d
g
i
m
p
s
v
Typedefs
b
c
l
p
s
t
v
Enumerations
Enumerator
c
f
i
r
Properties
a
c
d
f
g
h
i
m
o
s
t
u
Files
File List
File Members
All
a
b
c
d
f
h
i
k
l
m
o
p
q
r
s
t
w
Functions
a
b
c
d
f
h
i
l
m
o
p
q
r
s
t
w
Variables
Enumerations
Enumerator
Macros
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
Concepts
Loading...
Searching...
No Matches
source
src
qtquick
views
qtquick/views/SideBar.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
#ifndef KD_SIDEBAR_QTQUICK_H
13
#define KD_SIDEBAR_QTQUICK_H
14
15
#pragma once
16
17
#include "
View.h
"
18
#include "kddockwidgets/docks_export.h"
19
#include "kddockwidgets/core/views/SideBarViewInterface.h"
20
21
#include <QToolButton>
22
#include <QPointer>
23
24
QT_BEGIN_NAMESPACE
25
class
QBoxLayout
;
26
class
QAbstractButton
;
27
QT_END_NAMESPACE
28
29
namespace
KDDockWidgets
{
30
31
class
Group;
32
33
namespace
Core {
34
class
SideBar
;
35
}
36
37
namespace
QtQuick
{
38
class
SideBar
;
39
}
40
41
class
SideBarButton
:
public
QToolButton
42
{
43
Q_OBJECT
44
public
:
45
explicit
SideBarButton
(
Core::DockWidget
*dw, QtQuick::SideBar *
parent
);
46
bool
isVertical
()
const
;
47
void
paintEvent
(
QPaintEvent
*)
override
;
48
QSize
sizeHint
()
const override
;
49
50
private
:
51
QtQuick::SideBar *
const
m_sideBar;
52
const
QPointer<Core::DockWidget>
m_dockWidget;
53
};
41
class
SideBarButton
:
public
QToolButton
{
…
};
54
55
namespace
QtQuick
{
56
57
class
DOCKS_EXPORT SideBar :
public
QtQuick::View
<QQuickItem>,
public
Core::SideBarViewInterface
58
{
59
Q_OBJECT
60
public
:
61
explicit
SideBar(
Core::SideBar
*, QQuickItem *parent);
62
63
void
init()
override
;
64
bool
isVertical()
const
;
65
66
void
addDockWidget_Impl(
Core::DockWidget
*)
override
;
67
void
removeDockWidget_Impl(
Core::DockWidget
*)
override
;
68
69
// virtual so users can provide their own buttons
70
virtual
SideBarButton
*createButton(
Core::DockWidget
*dw, SideBar *parent)
const
;
71
72
private
:
73
QBoxLayout
*m_layout =
nullptr
;
74
};
75
}
76
77
}
78
79
#endif
KDDockWidgets::Core::DockWidget
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
Definition
core/DockWidget.h:60
KDDockWidgets::Core::SideBarViewInterface
The interface that SideBar views should implement.
Definition
SideBarViewInterface.h:25
KDDockWidgets::Core::SideBar
Definition
core/SideBar.h:30
KDDockWidgets::QtQuick::View
Definition
qtquick/views/View.h:53
KDDockWidgets::SideBarButton
Definition
qtquick/views/SideBar.h:42
KDDockWidgets::SideBarButton::SideBarButton
SideBarButton(Core::DockWidget *dw, QtQuick::SideBar *parent)
KDDockWidgets::SideBarButton::paintEvent
void paintEvent(QPaintEvent *) override
Definition
qtquick/views/SideBar.cpp:89
KDDockWidgets::SideBarButton::sizeHint
QSize sizeHint() const override
Definition
qtquick/views/SideBar.cpp:132
KDDockWidgets::SideBarButton::isVertical
bool isVertical() const
Definition
qtquick/views/SideBar.cpp:84
KDDockWidgets::Core::ViewType::SideBar
@ SideBar
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::FrontendType::QtQuick
@ QtQuick
QAbstractButton
QBoxLayout
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QPaintEvent
QPointer
QSize
QToolButton
View.h
© 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