添加状态颜色
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user