From ad7a2a974244b851231d0d40218983ef453d08b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B0=91=E5=8B=87?= Date: Tue, 25 Oct 2022 18:10:35 +0800 Subject: [PATCH] =?UTF-8?q?144439=20=E3=80=90xc=E5=B9=B3=E6=9D=BF=E3=80=91?= =?UTF-8?q?=E3=80=90=E8=AE=BE=E8=AE=A1=E3=80=91=E3=80=90=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E8=BF=98=E5=8E=9F=E3=80=91=E6=95=B0=E6=8D=AE=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=9B=BE=E6=A0=87=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kybackup/module/databackup.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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;