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:
parent
1180c435fc
commit
da1b4421b6
|
@ -45,7 +45,7 @@ SearchLineEdit::SearchLineEdit(QWidget *parent) : QLineEdit(parent) {
|
||||||
pixmap = QPixmap(QIcon(":/res/icons/system-search.symbolic.png").pixmap(QSize(18, 18)));
|
pixmap = QPixmap(QIcon(":/res/icons/system-search.symbolic.png").pixmap(QSize(18, 18)));
|
||||||
}
|
}
|
||||||
m_queryIcon->setProperty("useIconHighlightEffect", 0x10);
|
m_queryIcon->setProperty("useIconHighlightEffect", 0x10);
|
||||||
m_queryIcon->setFixedSize(pixmap.size());
|
m_queryIcon->setFixedSize(pixmap.size() / pixmap.devicePixelRatio());
|
||||||
m_queryIcon->setPixmap(pixmap);
|
m_queryIcon->setPixmap(pixmap);
|
||||||
|
|
||||||
m_ly = new QHBoxLayout(this);
|
m_ly = new QHBoxLayout(this);
|
||||||
|
|
Loading…
Reference in New Issue