feat(cpn): Status dialog when writing models and settings to radio (#3043)

This commit is contained in:
Neil Horne
2023-01-26 13:53:13 +10:00
committed by GitHub
parent 57bf180a9b
commit d952333037
5 changed files with 51 additions and 6 deletions
+22
View File
@@ -929,3 +929,25 @@ bool SemanticVersion::fromInt(const unsigned int val)
version.preReleaseNumber = Helpers::getBitmappedValue(val, 0, 4);
return isValid();
}
StatusDialog::StatusDialog(QWidget * parent, const QString title, QString msgtext, const int width) :
QDialog(parent)
{
setWindowTitle(title);
QVBoxLayout *layout = new QVBoxLayout(this);
msg = new QLabel(this);
msg->setFixedWidth(width);
msg->setContentsMargins(50, 50, 50, 50);
update(msgtext);
layout->addWidget(msg);
show();
}
StatusDialog::~StatusDialog()
{
}
void StatusDialog::update(QString text)
{
msg->setText(text);
}