KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
GroupViewInterface.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 "GroupViewInterface.h"
13#include "core/Group.h"
14#include "core/TabBar.h"
15#include "core/Stack.h"
16
17namespace KDDockWidgets::Core {
18
20 : m_group(controller)
21{
22}
23
25
27{
28 return m_group->isMDI();
29}
30
32{
33 return m_group;
34}
35
37{
38 return {};
39}
40
45
47{
48 m_group->stack()->insertDockWidget(dw, index);
49}
50
51} // namespace
The DockWidget base-class. DockWidget and Core::DockWidget are only split in two so we can share some...
virtual void insertDockWidget(DockWidget *, int index)
virtual Rect dragRect() const
the rect that should start a drag. Only relevant if the title bar isn't visible. For normal KDDW usag...
bool isMDI() const
Returns whether this group is in a MDI layout Usually no, unless you're using an MDI main window.
Core::Stack * stack() const
returns the tab widget
Core::TabBar * tabBar() const
bool insertDockWidget(DockWidget *dockwidget, int index)
inserts dockwidget into the TabWidget, at index
void removeDockWidget(Core::DockWidget *dw)

© 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