]>
cloud.milkyroute.net Git - dolphin.git/blob - src/dolphindockwidget.h
2 * SPDX-FileCopyrightText: 2010 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef DOLPHIN_DOCK_WIDGET_H
8 #define DOLPHIN_DOCK_WIDGET_H
10 #include <QDockWidget>
13 * @brief Extends QDockWidget to be able to get locked.
15 class DolphinDockWidget
: public QDockWidget
20 explicit DolphinDockWidget(const QString
&title
= QString(), QWidget
*parent
= nullptr, Qt::WindowFlags flags
= {});
21 ~DolphinDockWidget() override
;
24 * @param lock If \a lock is true, the title bar of the dock-widget will get hidden so
25 * that it is not possible for the user anymore to move or undock the dock-widget.
27 void setLocked(bool lock
);
28 bool isLocked() const;
32 * Make sure we do not emit QDockWidget::visibilityChanged() signals whenever Dolphin's window is minimized or restored.
34 bool event(QEvent
*event
) override
;
38 QWidget
*m_dockTitleBar
;