KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
core
views
StackViewInterface.cpp
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2020 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 "
StackViewInterface.h
"
13
#include "kddockwidgets/core/Stack.h"
14
15
16
namespace
KDDockWidgets::Core
{
17
18
StackViewInterface::StackViewInterface
(
Stack
*controller)
19
: m_stack(controller)
20
{
21
}
22
23
StackViewInterface::~StackViewInterface
() =
default
;
24
25
bool
StackViewInterface::isPositionDraggable
(Point)
const
26
{
27
return
true
;
28
}
29
30
void
StackViewInterface::setDocumentMode
(
bool
)
31
{
33
}
34
35
}
StackViewInterface.h
KDDockWidgets::Core::StackViewInterface::StackViewInterface
StackViewInterface(Stack *)
Definition
StackViewInterface.cpp:18
KDDockWidgets::Core::StackViewInterface::isPositionDraggable
virtual bool isPositionDraggable(Point p) const
Reimplement if you want to support dragging by QTabWidget instead of TitleBar This is only implemente...
Definition
StackViewInterface.cpp:25
KDDockWidgets::Core::StackViewInterface::setDocumentMode
virtual void setDocumentMode(bool)
Sets QTabWidget::documentMode(). Only implemented for QtWidgets. Probably not interesting for other f...
Definition
StackViewInterface.cpp:30
KDDockWidgets::Core::StackViewInterface::~StackViewInterface
virtual ~StackViewInterface()
KDDockWidgets::Core::Stack
Definition
core/Stack.h:35
KDDockWidgets::Core
Definition
Config.h:27
© 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