修改曲线,通讯数据强度,速率
This commit is contained in:
@@ -259,8 +259,21 @@ void CommandBox::on_pushButton_SendTest_clicked()
|
||||
}
|
||||
|
||||
|
||||
on_commandClicked(ui->comboBox_TestPoint->currentText() + " " + ui->comboBox_TestValue->currentText() ,
|
||||
102,0,0,0,0,0,0,180,0);
|
||||
if((ui->comboBox_TestPoint->currentIndex() != -1)&&(ui->comboBox_TestValue->currentIndex() != -1))
|
||||
{
|
||||
on_commandClicked(ui->comboBox_TestPoint->currentText() + " " + ui->comboBox_TestValue->currentText() ,
|
||||
102,0,0,0,0,0,0,180,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
QMessageBox *box = new QMessageBox(this);
|
||||
|
||||
box->setWindowTitle(tr("警告"));
|
||||
box->setText(tr("请选择测试项和测试点"));
|
||||
box->show();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -363,8 +376,20 @@ void CommandBox::on_pushButton_Afterburner_half_clicked()
|
||||
|
||||
void CommandBox::on_pushButton_setRPM_clicked()
|
||||
{
|
||||
on_commandClicked(ui->pushButton_setRPM->text() + " " + ui->comboBox_rate->currentText(),
|
||||
102,0,0,0,0,0,0,180,0);
|
||||
if(ui->comboBox_rate->currentIndex() != -1)
|
||||
{
|
||||
on_commandClicked(ui->pushButton_setRPM->text() + " " + ui->comboBox_rate->currentText(),
|
||||
102,0,0,0,0,0,0,180,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
QMessageBox *box = new QMessageBox(this);
|
||||
|
||||
box->setWindowTitle(tr("警告"));
|
||||
box->setText(tr("请设定给定转速"));
|
||||
box->show();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "QAction"
|
||||
#include "QContextMenuEvent"
|
||||
#include "QMenu"
|
||||
|
||||
#include "QMessageBox"
|
||||
|
||||
#include "multiselector.h"
|
||||
#include "Selector.h"
|
||||
|
||||
@@ -62,6 +62,9 @@
|
||||
<height>150</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(85, 255, 127);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>发送</string>
|
||||
</property>
|
||||
@@ -75,6 +78,9 @@
|
||||
<height>150</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(255, 140, 142);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>取消</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user