添加状态颜色

This commit is contained in:
hm
2021-06-03 23:01:25 +08:00
parent 0010e2055b
commit 98b0de243d
31 changed files with 2367 additions and 55 deletions
+2 -9
View File
@@ -33,30 +33,24 @@ ToolsUI::ToolsUI(QWidget *parent) :
index2 = new Tools_Index2();
index3 = new Tools_Index3();
index4 = new tools_Index4();
//powersystem = new PowerSystem();
//servosystem = new ServoSystem();
command = new CommandBox();
//diagram = new Diagram();
senser = new Senser();
remotecontrol = new RemoteControl();
install(index0, 0,tr("Inspector"));
install(index1, 1,tr("Log"));
install(index2, 2,tr("Replay"));
install(index3, 3,tr("Terminal"));
install(index4, 4,tr("Servos"));
//install(powersystem, 5,tr("PowerSystem"));
//install(servosystem, 6,tr("ServoSystem"));
install(command, 7,tr("CommandBox"));
//install(diagram, 8,tr("Diagram"));
install(senser, 9,tr("Senser"));
install(senser, 9,tr("Senser"));
install(remotecontrol,9,tr("RC"));
connect(this,SIGNAL(IndexChanged(int)),
this,SLOT(onTabIndexChanged(int)));
@@ -112,7 +106,6 @@ void ToolsUI::setPushButtonState(QWidget *w,state s)
void ToolsUI::install(ToolsWidget *widget,int key, QString name)
{
//if(!ToolsList.keys().contains(ToolsList.size()))
if(!ToolsList.values().contains(widget))
{
int h = 50;