KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
qtwidgets
views
qtwidgets/views/Stack.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_STACK_QTWIDGETS_H
13
#define KD_STACK_QTWIDGETS_H
14
15
#pragma once
16
17
#include "
View.h
"
18
#include <kddockwidgets/core/views/StackViewInterface.h>
19
20
#include <QTabWidget>
21
22
class
QAbstractButton
;
23
24
namespace
KDDockWidgets
{
25
namespace
QtWidgets
{
26
27
class
DOCKS_EXPORT
Stack
:
public
View
<QTabWidget>,
public
Core::StackViewInterface
28
{
29
Q_OBJECT
30
public
:
31
explicit
Stack
(
Core::Stack
*controller,
QWidget
*parent =
nullptr
);
32
~Stack
();
33
35
QTabBar
*tabBar()
const
;
36
37
bool
isPositionDraggable(
QPoint
p)
const override
;
38
void
init()
override
;
39
void
setDocumentMode(
bool
)
override
;
40
42
Core::Stack
*stack()
const
;
43
45
QAbstractButton
*button(
TitleBarButtonType
)
const
;
46
47
protected
:
48
void
mouseDoubleClickEvent(
QMouseEvent
*)
override
;
49
void
mousePressEvent(
QMouseEvent
*)
override
;
50
53
virtual
void
showContextMenu(
QPoint
pos);
54
55
private
:
56
void
updateMargins();
57
void
setupTabBarButtons();
58
void
updateTabBarButtons();
59
60
class
Private;
61
Private *
const
d;
62
63
Q_DISABLE_COPY(
Stack
)
64
};
65
66
}
67
}
68
69
#endif
KDDockWidgets::Core::StackViewInterface
The interface that Stack views share.
Definition
StackViewInterface.h:25
KDDockWidgets::Core::Stack
Definition
core/Stack.h:35
KDDockWidgets::QtWidgets::Stack
Definition
qtwidgets/views/Stack.h:28
KDDockWidgets::QtWidgets::View
Definition
qtwidgets/views/View.h:36
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
KDDockWidgets::FrontendType::QtWidgets
@ QtWidgets
KDDockWidgets::TitleBarButtonType
TitleBarButtonType
describes a type of button you can have in the title bar
Definition
KDDockWidgets.h:275
QAbstractButton
QMouseEvent
QPoint
QTabBar
View.h
QWidget
© 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