enh(cpn): Cloudbuild support - phase 1 (#4856)

This commit is contained in:
Neil Horne
2024-05-28 10:50:02 +10:00
committed by GitHub
parent e033da999c
commit 27f53ff195
51 changed files with 2088 additions and 977 deletions
+16 -3
View File
@@ -42,8 +42,8 @@ void UpdateStatus::reportProgress(QString text, QtMsgType type)
qDebug() << text;
}
if (type == QtCriticalMsg || type == QtFatalMsg)
criticalMsg(text);
if (type == QtFatalMsg)
fatalMsg(text);
}
void UpdateStatus::progressMessage(QString text)
@@ -54,8 +54,21 @@ void UpdateStatus::progressMessage(QString text)
qDebug() << text;
}
void UpdateStatus::criticalMsg(QString msg)
void UpdateStatus::fatalMsg(QString msg)
{
QMessageBox::critical(m_progress, tr("Update Interface"), msg);
}
void UpdateStatus::setProgress(ProgressWidget * progress)
{
m_progress = progress;
if (m_progress) {
disconnect(m_progress, &ProgressWidget::stopped, this, &UpdateStatus::onWidgetStopped); // to avoid duplicate entries in stack
connect(m_progress, &ProgressWidget::stopped, this, &UpdateStatus::onWidgetStopped);
}
}
void UpdateStatus::onWidgetStopped()
{
emit cancelled();
}