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
10class WindowStatusBarPrivate;
11class WindowStatusBar : public QStatusBar
12{
13 Q_OBJECT
14 WindowStatusBarPrivate *const d;
15public:
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