功能:为桌面列表卡片增加设置入口
变更详情:桌面列表每卡增加设置入口
This commit is contained in:
parent
eb081a3914
commit
47f97ac764
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user