修正状态,添加指令
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user