Fix#130775 search-line-edit's pixmap dont show the device independent pixels because of the using of the AA_UseHighDpiPixmaps.

This commit is contained in:
JunjieBai 2022-07-27 10:19:42 +08:00
parent 1180c435fc
commit da1b4421b6
1 changed files with 1 additions and 1 deletions

View File

@ -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);