From 8f9128c8332ebd785dca027a317ded106bc4b154 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Thu, 27 Jun 2024 20:00:36 +0800 Subject: [PATCH] fix: The quick panel plugin not show correct The font size of the system is set to the largest, and some of the text in the shortcut panel is incomplete. Log: The quick panel plugin not show correct. Bug: https://pms.uniontech.com/bug-view-260963.html --- src/grand-search-dock-plugin/gui/grandsearchwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/grand-search-dock-plugin/gui/grandsearchwidget.cpp b/src/grand-search-dock-plugin/gui/grandsearchwidget.cpp index 28e5b311..ef9bd318 100644 --- a/src/grand-search-dock-plugin/gui/grandsearchwidget.cpp +++ b/src/grand-search-dock-plugin/gui/grandsearchwidget.cpp @@ -172,21 +172,21 @@ QuickPanel::QuickPanel(const QString &desc, QWidget *parent) : QWidget(parent) { QVBoxLayout *lay = new QVBoxLayout; - lay->setMargin(10); + lay->setMargin(8); lay->setSpacing(0); lay->addStretch(1); iconLabel = new DLabel; iconLabel->setFixedSize(PANEL_ICON_SIZE, PANEL_ICON_SIZE); iconLabel->setAlignment(Qt::AlignCenter); - lay->addWidget(iconLabel, 0, Qt::AlignHCenter); + lay->addWidget(iconLabel, 0, Qt::AlignCenter); DLabel *textLabel = new DLabel; textLabel->setText(desc); textLabel->setElideMode(Qt::ElideRight); textLabel->setAlignment(Qt::AlignCenter); DFontSizeManager::instance()->bind(textLabel, DFontSizeManager::T10); - lay->addSpacing(15); + lay->addSpacing(8); lay->addWidget(textLabel, 0, Qt::AlignHCenter); lay->addStretch(1);