Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDockWidgetTitleBar.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
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#ifndef KODOCKWIDGETTITLEBAR_H_
7#define KODOCKWIDGETTITLEBAR_H_
8
9#include "kritawidgets_export.h"
10#include <QDockWidget>
11
19class KRITAWIDGETS_EXPORT KoDockWidgetTitleBar : public QWidget
20{
21 Q_OBJECT
22public:
23 explicit KoDockWidgetTitleBar(QDockWidget *dockWidget);
24 ~KoDockWidgetTitleBar() override;
25
26 void updateIcons();
27
28public Q_SLOTS:
29 void setLocked(bool locked);
30
31protected:
32 void paintEvent(QPaintEvent* event) override;
33 void resizeEvent(QResizeEvent* event) override;
34private:
35 Q_PRIVATE_SLOT(d, void toggleFloating())
36 Q_PRIVATE_SLOT(d, void topLevelChanged(bool topLevel))
37 Q_PRIVATE_SLOT(d, void featuresChanged(QDockWidget::DockWidgetFeatures))
38 Q_PRIVATE_SLOT(d, void dockWidgetTitleChanged(const QString &title))
39
40 class Private;
41 Private * const d;
42};
43
44#endif // KODOCKWIDGETTITLEBAR_H_
A custom title bar for dock widgets.