Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDockWidgetTitleBar_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2007 Marijn Kruisselbrink <mkruisselbrink@kde.org>
3 SPDX-FileCopyrightText: 2007 Thomas Zander <zander@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7#ifndef KoDockWidgetTitleBar_p_h
8#define KoDockWidgetTitleBar_p_h
9
12
13#include <KoIcon.h>
14
15#include <WidgetsDebug.h>
16
17#include <QAbstractButton>
18#include <QAction>
19#include <QLayout>
20#include <QStyle>
21#include <QStylePainter>
22#include <QStyleOptionFrame>
23
24class KSqueezedTextLabel;
25
26class Q_DECL_HIDDEN KoDockWidgetTitleBar::Private
27{
28public:
30 : thePublic(thePublic)
31 , locked(false)
32 {
33 }
34
35 KoDockWidgetTitleBar* thePublic {nullptr};
36 QIcon lockIcon, floatIcon, removeIcon;
37 QAbstractButton* closeButton {nullptr};
38 QAbstractButton* floatButton {nullptr};
39 QAbstractButton* lockButton {nullptr};
40 KSqueezedTextLabel* titleLabel {nullptr};
41 bool locked {false};
42 QDockWidget::DockWidgetFeatures features;
43
45 void topLevelChanged(bool topLevel);
46 void featuresChanged(QDockWidget::DockWidgetFeatures features);
47 void dockWidgetTitleChanged(const QString &title);
50};
51#endif
A custom title bar for dock widgets.
void featuresChanged(QDockWidget::DockWidgetFeatures features)
QDockWidget::DockWidgetFeatures features
Private(KoDockWidgetTitleBar *thePublic)
void dockWidgetTitleChanged(const QString &title)
void topLevelChanged(bool topLevel)