From 8ba035a321c34c86567d3dd082466aa99b1442bc Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Sat, 24 Aug 2024 16:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=B7=A5=E5=85=B7=E4=B8=BB?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=B8=8A=E9=9D=A2=E5=A2=9E=E5=8A=A0=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E5=B9=B6=E6=98=BE=E7=A4=BA=E7=94=B5=E6=9C=BA=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/HGProductionTool/form_maininterface.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/HGProductionTool/form_maininterface.cpp b/app/HGProductionTool/form_maininterface.cpp index 1945a08..68ffe98 100644 --- a/app/HGProductionTool/form_maininterface.cpp +++ b/app/HGProductionTool/form_maininterface.cpp @@ -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); } } }