Merge branch '0726ukss' into 'ukss-dev'

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

See merge request kylin-desktop/ukui-search!355
This commit is contained in:
PengfeiZhang 2022-07-28 11:22:33 +00:00
commit e0aac07c9b
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);