1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef AUTOHIDEDOCKWIDGET_H
6#define AUTOHIDEDOCKWIDGET_H
7
8#include <QDockWidget>
9
10class AutoHideDockWidget : public QDockWidget
11{
12 Q_OBJECT
13public:
14 AutoHideDockWidget(const QString &title, QWidget *parent = nullptr,
15 Qt::WindowFlags flags = Qt::WindowFlags());
16 explicit AutoHideDockWidget(QWidget *parent = nullptr,
17 Qt::WindowFlags flags = Qt::WindowFlags());
18
19 QWidget *widget() const;
20
21 void setWidget(QWidget *widget);
22
23protected:
24 bool eventFilter(QObject *obj, QEvent *e) override;
25};
26
27#endif // AUTOHIDEDOCKWIDGET_H
28