From 7e6aad704d7789454fe7c4547b110cec339a016d Mon Sep 17 00:00:00 2001 From: ic005k Date: Tue, 8 Oct 2024 16:46:57 +0800 Subject: [PATCH] Some tests. --- src/mainwindow.cpp | 8 ++++++++ src/mainwindow.h | 6 +++++- src/mainwindow.ui | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2806cffc209..d2c2525a6c6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -10311,3 +10311,11 @@ void MainWindow::dataClassChange_uefi_drivers() { ui->table_uefi_drivers->item(c_row, 3)->setTextAlignment(Qt::AlignCenter); ui->table_uefi_drivers->item(c_row, 3)->setText(cboxDataClass->currentText()); } + +void MainWindow::on_btnUEFIUnload_Add_clicked() { + Method::add_OneLine(ui->table_uefi_Unload); +} + +void MainWindow::on_btnUEFIUnload_Del_clicked() { + del_item(ui->table_uefi_Unload); +} diff --git a/src/mainwindow.h b/src/mainwindow.h index e901a762753..c955de20289 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -34,7 +34,7 @@ #include #include -//网络相关头文件 +// 网络相关头文件 #include #include #include @@ -990,6 +990,10 @@ class MainWindow : public QMainWindow { void dataClassChange_uefi_drivers(); + void on_btnUEFIUnload_Add_clicked(); + + void on_btnUEFIUnload_Del_clicked(); + private: bool isDrag; QPoint m_position; diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 83d31bce6b0..449ff3b4572 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -8833,7 +8833,7 @@ Note: A side effect of using Custom approach is making SMBIOS updates exclusive QTabWidget::TabShape::Rounded - 8 + 9 true