From b2a2227fdaa7759cc864bbac6ecfd795064e3cae Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Tue, 19 Nov 2024 15:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=A7=E7=94=B5=E5=99=A81,?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Configuration.cpp | 16 +++++ Configuration.h | 4 ++ Configuration.ui | 168 +++++++++++++++++++++++++--------------------- 3 files changed, 113 insertions(+), 75 deletions(-) diff --git a/Configuration.cpp b/Configuration.cpp index da79842..3036ac9 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -1216,3 +1216,19 @@ void CConfiguration::on_treeView_Available_pressed(const QModelIndex &index) } + +void CConfiguration::on_radioButton_11_clicked() +{ + m_curentRLY = 1; + ui->label_3->setText(ui->radioButton_11->text()+":"); + ViewRelay(1); +} + + +void CConfiguration::on_radioButton_12_clicked() +{ + m_curentRLY = 2; + ui->label_3->setText(ui->radioButton_12->text()+":"); + ViewRelay(2); +} + diff --git a/Configuration.h b/Configuration.h index 4c594e1..eb54573 100644 --- a/Configuration.h +++ b/Configuration.h @@ -58,6 +58,10 @@ private slots: void on_treeView_Available_pressed(const QModelIndex &index); + void on_radioButton_11_clicked(); + + void on_radioButton_12_clicked(); + private: Ui::CConfiguration *ui; diff --git a/Configuration.ui b/Configuration.ui index 0f8d184..291d846 100644 --- a/Configuration.ui +++ b/Configuration.ui @@ -7,7 +7,7 @@ 0 0 1052 - 640 + 659 @@ -112,6 +112,9 @@ color: rgb(27, 30, 35); 选择继电器 + + Qt::AlignCenter + @@ -122,89 +125,104 @@ color: rgb(27, 30, 35); 0 - + - - - 150 - 0 - - Qt::Horizontal - - - 继电器3 + + + 18 - - - - - - 继电器4 - - - - - - - 继电器5 - - - - - - - 继电器6 - - - - - - - 继电器7 - - - - - - - 继电器8 - - - - - - - 继电器9 - - - - - - - 继电器10 - - - - - - - 继电器11 - - - - - - - 继电器12 - - + + + + 继电器1 + + + + + + + 继电器2 + + + + + + + 继电器3 + + + + + + + 继电器4 + + + + + + + 继电器5 + + + + + + + 继电器6 + + + + + + + 继电器7 + + + + + + + 继电器8 + + + + + + + 继电器9 + + + + + + + 继电器10 + + + + + + + 继电器11 + + + + + + + 继电器12 + + + +