Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 26abca7

Browse files
committed
set text according to state of progress (running/finished)
TODO: error state is missing
1 parent edad915 commit 26abca7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Libs/libMacGitverCore/Widgets/ProgressDlg.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ void ProgressDlg::addActivity(const QString& description, QObject* activity,
9797
activityItem->addChild(stepItem);
9898
ui->treeProgress->setItemWidget(stepItem, 0, s);
9999
}
100+
101+
a->txtStatusInfo->setText(tr("Running..."));
100102
}
101103

102104
void ProgressDlg::setStatusInfo(QObject* activity, const QString& step,
@@ -167,7 +169,9 @@ void ProgressDlg::remoteMessage(const QString& msg)
167169

168170
void ProgressDlg::finished(QObject* activity)
169171
{
170-
mActivities[activity]->mStatus = Private::ProgressWdgt::Stopped;
172+
Private::ProgressWdgt* a = mActivities[activity];
173+
a->mStatus = Private::ProgressWdgt::Stopped;
174+
a->txtStatusInfo->setText(tr("Finished!"));
171175

172176
bool done = true;
173177
foreach (Private::ProgressWdgt* a, mActivities) {

0 commit comments

Comments
 (0)