更新生产配置文件生成工具,简化界面功能

This commit is contained in:
yangjiaxuan 2024-03-14 20:08:59 +08:00
parent 286309c62f
commit 7e377c7f18
4 changed files with 12 additions and 92 deletions

View File

@ -11,7 +11,7 @@
<message>
<location filename="dialog_mymessagebox.ui" line="38"/>
<source>Ok</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="dialog_mymessagebox.ui" line="45"/>

View File

@ -43,16 +43,8 @@ void MainWindow::initDeviceInfo()
QStringList sleepTime{ tr("Not dormant"), tr("5 min"), tr("10 min"), tr("20 min"), tr("30 min"), tr("1 hour"), tr("2 hours"), tr("4 hours") };
ui->comboBox_sleepTime->addItems(sleepTime);
ui->comboBox_lockDevice->addItem(tr("Not locked"));
ui->comboBox_lockDevice->addItem(tr("Lock"));
QStringList testStation{ tr("Burn"), tr("Initial inspection"), tr("Image inspection") };
ui->comboBox_testStation->addItems(testStation);
QStringList testType{ tr("automatic testing"), tr("Manual testing") };
ui->comboBox_testType->addItems(testType);
ui->lineEdit_vid->setReadOnly(true);
ui->lineEdit_pid->setReadOnly(true);
}
@ -391,9 +383,6 @@ void MainWindow::on_tableWidget_itemClicked(QTableWidgetItem *item)
ui->tableWidget->selectRow(row);
}
ui->lineEdit_testItem->setText(ui->tableWidget->item(row, 2)->text());
ui->comboBox_testStation->setCurrentText(ui->tableWidget->item(row, 3)->text());
ui->comboBox_testType->setCurrentText(ui->tableWidget->item(row, 4)->text());
ui->textBrowser_testContent->setText(ui->tableWidget->item(row, 5)->text());
}

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1010</width>
<height>787</height>
<width>1008</width>
<height>753</height>
</rect>
</property>
<property name="windowTitle">
@ -110,7 +110,7 @@
<property name="geometry">
<rect>
<x>430</x>
<y>690</y>
<y>640</y>
<width>131</width>
<height>51</height>
</rect>
@ -257,81 +257,12 @@
<string>Lock device:</string>
</property>
</widget>
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>40</x>
<y>260</y>
<width>71</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Test item:</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_testItem">
<property name="geometry">
<rect>
<x>130</x>
<y>260</y>
<width>161</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_14">
<property name="geometry">
<rect>
<x>350</x>
<y>260</y>
<width>81</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Test station:</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox_testStation">
<property name="geometry">
<rect>
<x>440</x>
<y>260</y>
<width>161</width>
<height>22</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>660</x>
<y>260</y>
<width>71</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Test type:</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox_testType">
<property name="geometry">
<rect>
<x>740</x>
<y>260</y>
<width>161</width>
<height>22</height>
</rect>
</property>
</widget>
<widget class="QTableWidget" name="tableWidget">
<property name="geometry">
<rect>
<x>20</x>
<y>320</y>
<width>611</width>
<y>280</y>
<width>621</width>
<height>291</height>
</rect>
</property>
@ -362,8 +293,8 @@
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<x>20</x>
<y>230</y>
<width>971</width>
<height>16</height>
</rect>
@ -376,7 +307,7 @@
<property name="geometry">
<rect>
<x>20</x>
<y>630</y>
<y>590</y>
<width>77</width>
<height>16</height>
</rect>
@ -388,8 +319,8 @@
<widget class="QTextBrowser" name="textBrowser_testContent">
<property name="geometry">
<rect>
<x>640</x>
<y>320</y>
<x>650</x>
<y>280</y>
<width>341</width>
<height>291</height>
</rect>
@ -401,7 +332,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>1010</width>
<width>1008</width>
<height>22</height>
</rect>
</property>