diff --git a/kybackup/module/databackup.cpp b/kybackup/module/databackup.cpp index 8885eb5..0eebc75 100755 --- a/kybackup/module/databackup.cpp +++ b/kybackup/module/databackup.cpp @@ -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;