生产工具主界面上面增加读取并显示电机版本号
This commit is contained in:
parent
bea6dff192
commit
8ba035a321
|
@ -68,7 +68,12 @@ Form_mainInterface::Form_mainInterface(class MainWindow *mainwnd, const QString
|
|||
func_test_uninit(NULL);
|
||||
func_test_init(NULL, m_hg);
|
||||
}
|
||||
ui->label_devInfo->setText(tr("Device type:") + m_devType + tr(" SerialNum:") + m_serialNum + " " + tr("FirmwareNum:") + m_devFwNum);
|
||||
QString mainDevInfo;
|
||||
mainDevInfo.append(tr("Device type:") + m_devType);
|
||||
mainDevInfo.append(tr(" SerialNum:") + m_serialNum);
|
||||
mainDevInfo.append(" " + tr("FirmwareNum:") + m_devFwNum);
|
||||
mainDevInfo.append(" " + tr("Motor version:") + getDevMotorVersion());
|
||||
ui->label_devInfo->setText(mainDevInfo);
|
||||
|
||||
ui->label_speedMode->setText(tr(" speed mode:") + getSpeedMode());
|
||||
ui->label_sleepTime->setText(tr(" sleep time:") + getSleepTime());
|
||||
|
@ -946,8 +951,7 @@ void Form_mainInterface::on_tableWidget_currentItemChanged(QTableWidgetItem *cur
|
|||
if (name.toStdWString() == HGPDTTOOLDB_NAME_GET_SN)
|
||||
{
|
||||
QString snStr(tr("device serial number:") + getDevSn());
|
||||
QString motorStr =(tr("Motor version:") + getDevMotorVersion());
|
||||
m_textTips->setViewContent(snStr + "\n\n" + motorStr);
|
||||
m_textTips->setViewContent(snStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue