From 47f97ac76484670252c75a142f8bfd343d17b0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=B8=80=E9=B8=A3?= <1000000008@qq.com> Date: Thu, 29 Oct 2026 02:10:06 -0400 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E4=B8=BA=E6=A1=8C?= =?UTF-8?q?=E9=9D=A2=E5=88=97=E8=A1=A8=E5=8D=A1=E7=89=87=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 变更详情:桌面列表每卡增加设置入口 --- terminal/kiosk-shell/src/desktop_list_page.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terminal/kiosk-shell/src/desktop_list_page.cpp b/terminal/kiosk-shell/src/desktop_list_page.cpp index c3f0f4c..d9092a3 100644 --- a/terminal/kiosk-shell/src/desktop_list_page.cpp +++ b/terminal/kiosk-shell/src/desktop_list_page.cpp @@ -132,6 +132,16 @@ void DesktopListPage::rebuildCards() { state->setStyleSheet(QStringLiteral("color: %1; font-weight: bold;").arg(stateColor)); row->addWidget(state); + // “设置”:每张卡都可编辑连接参数(协议/地址/应用名/分辨率/帧率) + auto* editBtn = new QPushButton(QStringLiteral("设置"), card); + editBtn->setMinimumSize(88, 42); + connect(editBtn, &QPushButton::clicked, this, [this, id = d.id]() { + if (!busy_) { + emit editRequested(id); + } + }); + row->addWidget(editBtn); + if (d.state == DesktopState::kAvailable) { auto* connectBtn = new QPushButton(QStringLiteral("连接"), card); connectBtn->setMinimumSize(110, 42);