Banner message
This commit is contained in:
@@ -48,7 +48,15 @@ TabFormWidget::TabFormWidget(QWidget* parent) :
|
||||
if (!msg) return;
|
||||
QString* s = (QString*)msg;
|
||||
lockIcon->setText(QString("%1%2").arg(*s).arg(tr("°C")));
|
||||
});
|
||||
});
|
||||
connect(EventCenter::Default(), &EventCenter::GlobalBannerMessage, [=](QObject*, QObject* msg) {
|
||||
if (!msg) {
|
||||
ui->systemMsgBar->setText("");
|
||||
return;
|
||||
}
|
||||
QString* s = (QString*)msg;
|
||||
ui->systemMsgBar->setText(*s);
|
||||
});
|
||||
}
|
||||
|
||||
TabFormWidget::~TabFormWidget()
|
||||
|
||||
Reference in New Issue
Block a user