KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
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"
16#include "View.h"
17
18#include <kdbindings/signal.h>
19
20namespace KDDockWidgets {
21
22
23namespace Core {
24class TitleBar;
25}
26
27namespace flutter {
28
29class DOCKS_EXPORT TitleBar : public View, public Core::TitleBarViewInterface
30{
31public:
32 explicit TitleBar(Core::TitleBar *controller, Core::View *parent = nullptr);
33 ~TitleBar() override;
34
36 virtual void onTitleBarChanged(const QString &);
37
38
39protected:
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
46protected:
47 void init() override;
48
49private:
50 KDBindings::ScopedConnection m_titleChangedConnection;
51};
52
53}
54
55}
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected.
Definition signal.h:533
The interface that TitleBar views should implement.
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