添加状态显示

This commit is contained in:
hm
2020-10-09 21:55:15 +08:00
parent 17be845e60
commit 386bfb2842
6 changed files with 834 additions and 50 deletions
+28 -1
View File
@@ -26,7 +26,7 @@ ToolsUI::ToolsUI(QWidget *parent) :
ui->pushButton_Servos->setFixedSize(w,h);
ui->PowerSystem->setFixedSize(w,h);
ui->ServoSystem->setFixedSize(w,h);
ui->pushButton_ShowExtern->setFixedSize(w,h);
index0 = new Tools_Index0(ui->frame);
@@ -276,3 +276,30 @@ void ToolsUI::on_ServoSystem_clicked()
CurrentIndex = 6;
emit IndexChanged(CurrentIndex);
}
void ToolsUI::on_pushButton_ShowExtern_clicked()
{
switch (CurrentIndex) {
case 0:
index0->setFloat();
break;
case 1:
//index1->setFloat();
break;
case 2:
//index2->setFloat();
break;
case 3:
//index3->setFloat();
break;
case 4:
index4->setFloat();
break;
case 5:
powersystem->setFloat();
break;
case 6:
servosystem->setFloat();
break;
}
}