From da1b4421b6441b817f9037f88d2b3b2d987d42c8 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Wed, 27 Jul 2022 10:19:42 +0800 Subject: [PATCH] Fix#130775 search-line-edit's pixmap dont show the device independent pixels because of the using of the AA_UseHighDpiPixmaps. --- frontend/control/search-line-edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/control/search-line-edit.cpp b/frontend/control/search-line-edit.cpp index 3b753fd..eb2b9e2 100644 --- a/frontend/control/search-line-edit.cpp +++ b/frontend/control/search-line-edit.cpp @@ -45,7 +45,7 @@ SearchLineEdit::SearchLineEdit(QWidget *parent) : QLineEdit(parent) { pixmap = QPixmap(QIcon(":/res/icons/system-search.symbolic.png").pixmap(QSize(18, 18))); } m_queryIcon->setProperty("useIconHighlightEffect", 0x10); - m_queryIcon->setFixedSize(pixmap.size()); + m_queryIcon->setFixedSize(pixmap.size() / pixmap.devicePixelRatio()); m_queryIcon->setPixmap(pixmap); m_ly = new QHBoxLayout(this);