KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
flutter/views/TitleBar.cpp
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#include "TitleBar.h"
13
14#include "core/DragController_p.h"
15#include "core/Logging_p.h"
16#include "core/TitleBar_p.h"
17#include "kddockwidgets/core/Group.h"
18#include "kddockwidgets/core/FloatingWindow.h"
19#include "kddockwidgets/core/TitleBar.h"
20
21
22using namespace KDDockWidgets;
23using namespace KDDockWidgets::flutter;
24
25
27 : View(controller, Core::ViewType::TitleBar, parent)
28 , Core::TitleBarViewInterface(controller)
29{
30}
31
35
37{
39 m_titleChangedConnection = m_titleBar->dptr()->titleChanged.connect([this] { onTitleBarChanged(m_titleBar->title()); });
40}
41
43{
44 KDDW_WARN("TitleBar::onTitleBarChanged: Implemented in dart instead");
45}
46
47#ifdef DOCKS_TESTING_METHODS
48bool TitleBar::isCloseButtonEnabled() const
49{
50 return true;
51}
52
53bool TitleBar::isCloseButtonVisible() const
54{
55 return true;
56}
57
58bool TitleBar::isFloatButtonVisible() const
59{
60 return true;
61}
62#endif
virtual void onTitleBarChanged(const QString &)
implemented by flutter
TitleBar(Core::TitleBar *controller, Core::View *parent=nullptr)
Class to abstract QAction, so code still works with QtQuick and Flutter.

© 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