1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef WINDOWSTATUSBAR_H |
6 | #define WINDOWSTATUSBAR_H |
7 | |
8 | #include <QStatusBar> |
9 | |
10 | class WindowStatusBarPrivate; |
11 | class WindowStatusBar : public QStatusBar |
12 | { |
13 | Q_OBJECT |
14 | WindowStatusBarPrivate *const d; |
15 | public: |
16 | explicit WindowStatusBar(QWidget *parent = nullptr); |
17 | virtual ~WindowStatusBar(); |
18 | void setPercentage(int percentage); |
19 | void setMessage(const QString &message); |
20 | bool progressIsHidden(); |
21 | void hideProgress(); |
22 | void showProgress(); |
23 | }; |
24 | |
25 | #endif // WINDOWSTATUSBAR_H |
26 | |