修正状态,添加指令

This commit is contained in:
hm
2020-10-10 12:12:30 +08:00
parent 386bfb2842
commit e3c98c6259
20 changed files with 1368 additions and 910 deletions
+19 -1
View File
@@ -115,6 +115,18 @@ PowerSystem::PowerSystem(QWidget *parent) :
ui->comboBox_TestValue->show();
ui->comboBox_TestValue->setCurrentIndex(-1);
ScopeRPM = new Scope(ui->frame_scope);
ScopeTemp = new Scope(ui->frame_scope);
ScopeAlt = new Scope(ui->frame_scope);
ScopeMa = new Scope(ui->frame_scope);
ScopeRPM->hideButton(true);
ScopeTemp->hideButton(true);
ScopeAlt->hideButton(true);
ScopeMa->hideButton(true);
}
PowerSystem::~PowerSystem()
@@ -122,7 +134,13 @@ PowerSystem::~PowerSystem()
delete ui;
}
void PowerSystem::resizeEvent(QResizeEvent *event)
{
ScopeRPM->setGeometry(0,0,ui->frame_scope->width(),ui->frame_scope->height()/4);
ScopeTemp->setGeometry(0,ui->frame_scope->height()/4,ui->frame_scope->width(),ui->frame_scope->height()/4);
ScopeAlt->setGeometry(0,ui->frame_scope->height()/2,ui->frame_scope->width(),ui->frame_scope->height()/4);
ScopeMa->setGeometry(0,3*ui->frame_scope->height()/4,ui->frame_scope->width(),ui->frame_scope->height()/4);
}
void PowerSystem::mousePressEvent(QMouseEvent *event)
{