Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_utility_title_bar_p.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Reinold Rojas <rojasreinold@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef KIS_UTILITY_TITLE_BAR_P_H
8#define KIS_UTILITY_TITLE_BAR_P_H
9
11#include "KoIcon.h"
12
13#include <WidgetsDebug.h>
14
15#include <QAbstractButton>
16#include <QAction>
17#include <QLayout>
18#include <QStyle>
19#include <QStylePainter>
20#include <QStyleOptionFrame>
21#include <QDockWidget>
22class KSqueezedTextLabel;
23
24class Q_DECL_HIDDEN KisUtilityTitleBar::Private
25{
26public:
28 : thePublic(thePublic)
29 , locked(false)
30 {
31 }
32
33 KisUtilityTitleBar* thePublic {nullptr};
34 QIcon lockIcon, floatIcon, removeIcon;
35 QHBoxLayout *mainLayout;
36 QPushButton* closeButton {nullptr};
37 QPushButton* floatButton {nullptr};
38 QAbstractButton* lockButton {nullptr};
39 KSqueezedTextLabel* titleLabel {nullptr};
40 bool locked {false};
41 QDockWidget::DockWidgetFeatures features;
42
44 void topLevelChanged(bool topLevel);
45 void featuresChanged(QDockWidget::DockWidgetFeatures features);
46 void dockWidgetTitleChanged(const QString &title);
49};
50
51#endif // KIS_UTILITY_TITLE_BAR_P_H
A special utility titlebar with a title and controls, as well as a central area for adding frequently...
void topLevelChanged(bool topLevel)
Private(KisUtilityTitleBar *thePublic)
void featuresChanged(QDockWidget::DockWidgetFeatures features)
QDockWidget::DockWidgetFeatures features
void dockWidgetTitleChanged(const QString &title)