功能:桌面列表每卡增加设置入口
This commit is contained in:
parent
4610d32ac4
commit
0ef517daa0
@ -132,6 +132,16 @@ void DesktopListPage::rebuildCards() {
|
|||||||
state->setStyleSheet(QStringLiteral("color: %1; font-weight: bold;").arg(stateColor));
|
state->setStyleSheet(QStringLiteral("color: %1; font-weight: bold;").arg(stateColor));
|
||||||
row->addWidget(state);
|
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) {
|
if (d.state == DesktopState::kAvailable) {
|
||||||
auto* connectBtn = new QPushButton(QStringLiteral("连接"), card);
|
auto* connectBtn = new QPushButton(QStringLiteral("连接"), card);
|
||||||
connectBtn->setMinimumSize(110, 42);
|
connectBtn->setMinimumSize(110, 42);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user