fix: 调整已连接蓝牙的对勾位置

调整StateButton的parentWidget的大小,适应右侧的距离

Log: 优化蓝牙显示
Influence: 任务栏-蓝牙列表-对勾
Bug: https://pms.uniontech.com/zentao/bug-view-81641.html
Change-Id: Idefe990b74f4c3e2381b8fcafa86f12800a95655
This commit is contained in:
donghualin 2021-11-11 16:30:54 +08:00
parent 55c865ba94
commit ae831c6560

View File

@ -74,7 +74,7 @@ void BluetoothDeviceItem::initActionList()
m_connButton->setType(StateButton::Check);
m_connButton->setSwitchFork(false);
m_connButton->setFixedSize(16, 16);
m_iconWidget->setFixedSize(20, 16);
m_iconWidget->setFixedSize(18, 16);
QHBoxLayout *layout = new QHBoxLayout(m_iconWidget);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(m_connButton);