KDDockWidgets API Documentation
2.0
Loading...
Searching...
No Matches
source
src
flutter
views
flutter/views/TitleBar.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
#pragma once
13
14
#include "kddockwidgets/docks_export.h"
15
#include "
core/views/TitleBarViewInterface.h
"
16
#include "
View.h
"
17
18
#include <
kdbindings/signal.h
>
19
20
namespace
KDDockWidgets
{
21
22
23
namespace
Core {
24
class
TitleBar
;
25
}
26
27
namespace
flutter {
28
29
class
DOCKS_EXPORT
TitleBar
:
public
View
,
public
Core::TitleBarViewInterface
30
{
31
public
:
32
explicit
TitleBar
(
Core::TitleBar
*controller,
Core::View
*parent =
nullptr
);
33
~TitleBar
()
override
;
34
36
virtual
void
onTitleBarChanged(
const
QString
&);
37
38
39
protected
:
40
#ifdef DOCKS_TESTING_METHODS
41
// These 3 just for unit-tests
42
bool
isCloseButtonEnabled()
const override
;
43
bool
isCloseButtonVisible()
const override
;
44
bool
isFloatButtonVisible()
const override
;
45
#endif
46
protected
:
47
void
init()
override
;
48
49
private
:
50
KDBindings::ScopedConnection
m_titleChangedConnection;
51
};
52
53
}
54
55
}
TitleBarViewInterface.h
KDBindings::ScopedConnection
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected.
Definition
signal.h:533
KDDockWidgets::Core::TitleBarViewInterface
The interface that TitleBar views should implement.
Definition
TitleBarViewInterface.h:24
KDDockWidgets::Core::TitleBar
Definition
core/TitleBar.h:32
KDDockWidgets::Core::View
Definition
core/View.h:48
KDDockWidgets::flutter::TitleBar
Definition
flutter/views/TitleBar.h:30
KDDockWidgets::flutter::View
Definition
flutter/views/View.h:23
KDDockWidgets::Core::ViewType::TitleBar
@ TitleBar
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
QString
View.h
signal.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