diff --git a/mainwindow.cpp b/mainwindow.cpp index 1c0e6ce..ae5f08d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -107,23 +107,19 @@ void MainWindow::on_Raw_clearOutputButton_clicked() ui->Raw_outputEdit->clear(); } -void MainWindow::on_Raw_moreFuncCheckBox_stateChanged(int arg1) +void MainWindow::on_Raw_CMDHistoryBox_stateChanged(int arg1) { - if(ui->Raw_moreFuncCheckBox->isChecked()) + if(arg1==Qt::Checked) { - ui->Raw_CMDTreeWidget->setVisible(true); - ui->Raw_CMDTreeLabel->setVisible(true); ui->Raw_CMDHistoryWidget->setVisible(true); - ui->Raw_CMDHistoryLabel->setVisible(true); ui->Raw_clearHistoryButton->setVisible(true); + ui->Raw_CMDHistoryBox->setText("History:"); } else { - ui->Raw_CMDTreeWidget->setVisible(false); - ui->Raw_CMDTreeLabel->setVisible(false); ui->Raw_CMDHistoryWidget->setVisible(false); - ui->Raw_CMDHistoryLabel->setVisible(false); ui->Raw_clearHistoryButton->setVisible(false); + ui->Raw_CMDHistoryBox->setText(""); } } @@ -458,7 +454,7 @@ void MainWindow::uiInit() ui->MF_UID_blockBox->addItem(QString::number(i)); } - on_Raw_moreFuncCheckBox_stateChanged(0); + on_Raw_CMDHistoryBox_stateChanged(Qt::Unchecked); on_PM3_refreshPortButton_clicked(); } diff --git a/mainwindow.h b/mainwindow.h index 4633a38..22d200c 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -46,7 +46,7 @@ private slots: void sendMSG(); void on_PM3_refreshPortButton_clicked(); - void on_Raw_moreFuncCheckBox_stateChanged(int arg1); + void on_Raw_CMDHistoryBox_stateChanged(int arg1); void on_Raw_clearHistoryButton_clicked(); @@ -72,6 +72,7 @@ private slots: void on_MF_RW_writeAllButton_clicked(); + private: Ui::MainWindow *ui; PM3Process* pm3; diff --git a/mainwindow.ui b/mainwindow.ui index 67d8ded..6f068e7 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -88,7 +88,7 @@ - 0 + 1 @@ -848,38 +848,6 @@ - - - - Command List: - - - - - - - - 1 - 0 - - - - 1 - - - - 1 - - - - - - - - History: - - - @@ -907,12 +875,15 @@ - + - Qt::RightToLeft + Qt::LeftToRight - + History: + + + false