添加状态生成

This commit is contained in:
hm
2021-03-05 15:32:31 +08:00
parent 23b6706dcf
commit 011f759aa9
4 changed files with 48 additions and 11 deletions
+12
View File
@@ -38,6 +38,18 @@ void StatusUI::setValue(QLabel *w,QString s)
w->setText(s);
}
void StatusUI::install(int flag, QString t,QVariant v,StateWidget::state s,int index)
{
StateWidget *w = new StateWidget(flag,t,v,s,index);
StateList.insert(index,w);
}
void StatusUI::setMode(uint32_t pos,QVariant value1,QVariant value2)
{
switch (pos) {