更新生产配置文件生成工具,简化界面功能
This commit is contained in:
parent
286309c62f
commit
7e377c7f18
Binary file not shown.
|
@ -11,7 +11,7 @@
|
||||||
<message>
|
<message>
|
||||||
<location filename="dialog_mymessagebox.ui" line="38"/>
|
<location filename="dialog_mymessagebox.ui" line="38"/>
|
||||||
<source>Ok</source>
|
<source>Ok</source>
|
||||||
<translation>确实</translation>
|
<translation>确定</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="dialog_mymessagebox.ui" line="45"/>
|
<location filename="dialog_mymessagebox.ui" line="45"/>
|
||||||
|
|
|
@ -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") };
|
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_sleepTime->addItems(sleepTime);
|
||||||
|
|
||||||
ui->comboBox_lockDevice->addItem(tr("Not locked"));
|
ui->comboBox_lockDevice->addItem(tr("Not locked"));
|
||||||
ui->comboBox_lockDevice->addItem(tr("Lock"));
|
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_vid->setReadOnly(true);
|
||||||
ui->lineEdit_pid->setReadOnly(true);
|
ui->lineEdit_pid->setReadOnly(true);
|
||||||
}
|
}
|
||||||
|
@ -391,9 +383,6 @@ void MainWindow::on_tableWidget_itemClicked(QTableWidgetItem *item)
|
||||||
ui->tableWidget->selectRow(row);
|
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());
|
ui->textBrowser_testContent->setText(ui->tableWidget->item(row, 5)->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1010</width>
|
<width>1008</width>
|
||||||
<height>787</height>
|
<height>753</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>430</x>
|
<x>430</x>
|
||||||
<y>690</y>
|
<y>640</y>
|
||||||
<width>131</width>
|
<width>131</width>
|
||||||
<height>51</height>
|
<height>51</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -257,81 +257,12 @@
|
||||||
<string>Lock device:</string>
|
<string>Lock device:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</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">
|
<widget class="QTableWidget" name="tableWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>320</y>
|
<y>280</y>
|
||||||
<width>611</width>
|
<width>621</width>
|
||||||
<height>291</height>
|
<height>291</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -362,8 +293,8 @@
|
||||||
<widget class="Line" name="line">
|
<widget class="Line" name="line">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>20</x>
|
||||||
<y>220</y>
|
<y>230</y>
|
||||||
<width>971</width>
|
<width>971</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -376,7 +307,7 @@
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>630</y>
|
<y>590</y>
|
||||||
<width>77</width>
|
<width>77</width>
|
||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -388,8 +319,8 @@
|
||||||
<widget class="QTextBrowser" name="textBrowser_testContent">
|
<widget class="QTextBrowser" name="textBrowser_testContent">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>640</x>
|
<x>650</x>
|
||||||
<y>320</y>
|
<y>280</y>
|
||||||
<width>341</width>
|
<width>341</width>
|
||||||
<height>291</height>
|
<height>291</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -401,7 +332,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1010</width>
|
<width>1008</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in New Issue