Update UI

pull/33/head
wh201906 4 years ago
parent 9e31496131
commit f706d59c48

@ -980,17 +980,9 @@ void MainWindow::uiInit()
ui->statusbar->addPermanentWidget(programStatusBar, 1); ui->statusbar->addPermanentWidget(programStatusBar, 1);
ui->statusbar->addPermanentWidget(stopButton); ui->statusbar->addPermanentWidget(stopButton);
ui->MF_dataWidget->setColumnCount(3);
ui->MF_dataWidget->setHorizontalHeaderItem(0, new QTableWidgetItem(tr("Sec")));
ui->MF_dataWidget->setHorizontalHeaderItem(1, new QTableWidgetItem(tr("Blk")));
ui->MF_dataWidget->setHorizontalHeaderItem(2, new QTableWidgetItem(tr("Data")));
ui->MF_dataWidget->setColumnWidth(0, 55); ui->MF_dataWidget->setColumnWidth(0, 55);
ui->MF_dataWidget->setColumnWidth(1, 55); ui->MF_dataWidget->setColumnWidth(1, 55);
ui->MF_keyWidget->setColumnCount(3);
ui->MF_keyWidget->setHorizontalHeaderItem(0, new QTableWidgetItem(tr("Sec")));
ui->MF_keyWidget->setHorizontalHeaderItem(1, new QTableWidgetItem(tr("KeyA")));
ui->MF_keyWidget->setHorizontalHeaderItem(2, new QTableWidgetItem(tr("KeyB")));
ui->MF_keyWidget->setColumnWidth(0, 45); ui->MF_keyWidget->setColumnWidth(0, 45);
MF_widgetReset(); MF_widgetReset();

@ -198,6 +198,21 @@
<attribute name="verticalHeaderDefaultSectionSize"> <attribute name="verticalHeaderDefaultSectionSize">
<number>20</number> <number>20</number>
</attribute> </attribute>
<column>
<property name="text">
<string>Sec</string>
</property>
</column>
<column>
<property name="text">
<string>Blk</string>
</property>
</column>
<column>
<property name="text">
<string>Data</string>
</property>
</column>
</widget> </widget>
</item> </item>
<item> <item>
@ -360,6 +375,21 @@
<attribute name="verticalHeaderDefaultSectionSize"> <attribute name="verticalHeaderDefaultSectionSize">
<number>20</number> <number>20</number>
</attribute> </attribute>
<column>
<property name="text">
<string>Sec</string>
</property>
</column>
<column>
<property name="text">
<string>KeyA</string>
</property>
</column>
<column>
<property name="text">
<string>KeyB</string>
</property>
</column>
</widget> </widget>
</item> </item>
</layout> </layout>

Loading…
Cancel
Save