添加状态显示
This commit is contained in:
+28
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user