summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/wizard
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-10-06 15:06:09 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-10-06 13:35:48 +0000
commit363731a8c8471dce6f45dc0571e450086b464ec6 (patch)
tree750254a4387a0e8aa7cfaaba31334c4d0bdf039a /src/plugins/vcsbase/wizard
parent98c4e342f880a5e21a321b8164ab1e98f5b0fde4 (diff)
downloadqt-creator-363731a8c8471dce6f45dc0571e450086b464ec6.tar.gz
RunFlags: Add ProgressiveOutput flag
It replaces VcsCommand::setProgressiveOutput() property. Change-Id: Icebd2205a5b489f60ded1eeee21e2deacbfde1fe Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/wizard')
-rw-r--r--src/plugins/vcsbase/wizard/vcscommandpage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/vcsbase/wizard/vcscommandpage.cpp b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
index 4a4a1999b4..476d2ab0b5 100644
--- a/src/plugins/vcsbase/wizard/vcscommandpage.cpp
+++ b/src/plugins/vcsbase/wizard/vcscommandpage.cpp
@@ -358,14 +358,14 @@ void VcsCommandPage::start(VcsCommand *command)
QTC_ASSERT(m_state != Running, return);
m_command = command;
- command->setProgressiveOutput(true);
- connect(command, &VcsCommand::stdOutText, this, [this](const QString &text) {
+ m_command->addFlags(RunFlags::ProgressiveOutput);
+ connect(m_command, &VcsCommand::stdOutText, this, [this](const QString &text) {
m_formatter->appendMessage(text, StdOutFormat);
});
- connect(command, &VcsCommand::stdErrText, this, [this](const QString &text) {
+ connect(m_command, &VcsCommand::stdErrText, this, [this](const QString &text) {
m_formatter->appendMessage(text, StdErrFormat);
});
- connect(command, &VcsCommand::done, this, [this] {
+ connect(m_command, &VcsCommand::done, this, [this] {
finished(m_command->result() == ProcessResult::FinishedWithSuccess);
});
QApplication::setOverrideCursor(Qt::WaitCursor);
@@ -374,7 +374,7 @@ void VcsCommandPage::start(VcsCommand *command)
m_statusLabel->setText(m_startedStatus);
m_statusLabel->setPalette(QPalette());
m_state = Running;
- command->start();
+ m_command->start();
wizard()->button(QWizard::BackButton)->setEnabled(false);
}