144439 【xc平板】【设计】【备份还原】数据备份页面的图标异常

This commit is contained in:
赵民勇 2022-10-25 18:10:35 +08:00
parent a012cb8e21
commit ad7a2a9742
1 changed files with 9 additions and 1 deletions

View File

@ -360,7 +360,7 @@ void DataBackup::initSecondWidget()
buttonAdd->setChangeHover();
searchLayout->addWidget(buttonDelete);
searchLayout->addWidget(buttonAdd);
searchLayout->setAlignment(Qt::AlignRight);
searchLayout->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
buttonDelete->setVisible(false);
buttonAdd->setVisible(false);
connect(editSelect, &QLineEdit::textChanged, this, [=](const QString& text) {
@ -372,6 +372,14 @@ void DataBackup::initSecondWidget()
buttonAdd->setVisible(false);
}
});
// 平板中放大点
if (GlobelBackupInfo::inst().isTabletMode()) {
editSelect->setTextMargins(0, 0, 70, 0);
buttonDelete->setFixedSize(28, 28);
buttonDelete->setUkuiIconSchema("window-close-symbolic", ":/symbos/window-close-symbolic", QSize(24, 24));
buttonAdd->setFixedSize(28, 28);
buttonAdd->setUkuiIconSchema("object-select-symbolic", ":/symbos/object-select-symbolic", QSize(24, 24));
}
// 选择按钮
MyPushButton *buttonSelect = new MyPushButton;