enh(cpn): Cloudbuild support - phase 1 (#4856)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user