X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/576a97d8eb9601f4ad74def6528cc90fffe97b1c..e112fc50e0577449990746e1718b79e54748b61f:/src/dolphindockwidget.h diff --git a/src/dolphindockwidget.h b/src/dolphindockwidget.h index eaf66e45a..127525b5a 100644 --- a/src/dolphindockwidget.h +++ b/src/dolphindockwidget.h @@ -17,7 +17,7 @@ class DolphinDockWidget : public QDockWidget Q_OBJECT public: - explicit DolphinDockWidget(const QString& title = QString(), QWidget* parent = nullptr, Qt::WindowFlags flags = {}); + explicit DolphinDockWidget(const QString &title = QString(), QWidget *parent = nullptr, Qt::WindowFlags flags = {}); ~DolphinDockWidget() override; /** @@ -27,9 +27,15 @@ public: void setLocked(bool lock); bool isLocked() const; +protected: + /** + * Make sure we do not emit QDockWidget::visibilityChanged() signals whenever Dolphin's window is minimized or restored. + */ + bool event(QEvent *event) override; + private: bool m_locked; - QWidget* m_dockTitleBar; + QWidget *m_dockTitleBar; }; #endif