Skip to content

Commit

Permalink
fix: The quick panel plugin not show correct
Browse files Browse the repository at this point in the history
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
  • Loading branch information
add-uos authored and deepin-bot[bot] committed Jul 1, 2024
1 parent 56148b2 commit 8f9128c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/grand-search-dock-plugin/gui/grandsearchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8f9128c

Please sign in to comment.