2020-09-16 00:35:12 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2016-2017 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-FileCopyrightText: 2019 Yuri Chornoivan <yurchor@ukr.net>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#if !defined(APPLYPROGRESSDIALOGWIDGET_H)
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#define APPLYPROGRESSDIALOGWIDGET_H
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2010-02-11 18:47:51 +00:00
|
|
|
#include "ui_applyprogressdialogwidgetbase.h"
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2010-05-18 23:27:30 +01:00
|
|
|
/** Central widget for the ProgressDialog.
|
2015-07-13 15:17:41 +01:00
|
|
|
@author Volker Lanz <vl@fidra.de>
|
2008-09-24 20:32:01 +01:00
|
|
|
*/
|
2010-02-11 18:47:51 +00:00
|
|
|
class ApplyProgressDialogWidget : public QWidget, public Ui::ApplyProgressDialogWidgetBase
|
2008-09-24 20:32:01 +01:00
|
|
|
{
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
2019-12-09 16:33:04 +00:00
|
|
|
explicit ApplyProgressDialogWidget(QWidget* parent);
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
|
|
|
QTreeWidget& treeTasks() {
|
|
|
|
Q_ASSERT(m_TreeTasks);
|
|
|
|
return *m_TreeTasks;
|
|
|
|
}
|
|
|
|
QProgressBar& progressTotal() {
|
|
|
|
Q_ASSERT(m_ProgressTotal);
|
|
|
|
return *m_ProgressTotal;
|
|
|
|
}
|
|
|
|
QProgressBar& progressSub() {
|
|
|
|
Q_ASSERT(m_ProgressSub);
|
|
|
|
return *m_ProgressSub;
|
|
|
|
}
|
|
|
|
QLabel& status() {
|
|
|
|
Q_ASSERT(m_LabelStatus);
|
|
|
|
return *m_LabelStatus;
|
|
|
|
}
|
|
|
|
QLabel& totalTime() {
|
|
|
|
Q_ASSERT(m_LabelTime);
|
|
|
|
return *m_LabelTime;
|
|
|
|
}
|
2008-09-24 20:32:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|