Add UsctStateManager and add DmsState in GUI.
This commit is contained in:
@@ -61,10 +61,17 @@ TopBarWidget::TopBarWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent,
|
||||
});
|
||||
|
||||
auto readyIcon = new QToolButton(this);
|
||||
readyIcon->setIcon(QIcon(":/icons/dicom/echo_suc.png"));
|
||||
readyIcon->setObjectName("ready");
|
||||
connect(readyIcon, &QToolButton::clicked,[=](){
|
||||
emit warnBtnClicked();
|
||||
});
|
||||
connect(EventCenter::Default(), &EventCenter::UsctStateUpdated,[readyIcon](QObject*, QObject* msg)
|
||||
{
|
||||
bool state = *(bool*)msg;
|
||||
QIcon icon(state ? ":/icons/dicom/echo_suc.png" :":/icons/dicom/echo_fail.png" );
|
||||
readyIcon->setIcon(icon);
|
||||
});
|
||||
|
||||
auto lockIcon = new QLabel(this);
|
||||
lockIcon->setText("");
|
||||
|
||||
Reference in New Issue
Block a user