forked from openkylin/ukui-search
解决系统字体变化时UI未能及时更新的问题
This commit is contained in:
parent
c3fadf77c2
commit
5254c49ffa
|
@ -7,6 +7,8 @@ ResultViewDelegate::ResultViewDelegate(QObject *parent) : QStyledItemDelegate(pa
|
|||
m_textDoc(new QTextDocument(this)),
|
||||
m_hightLightEffectHelper(new HightLightEffectHelper(this))
|
||||
{
|
||||
m_textDoc->setDefaultFont(QApplication::font());
|
||||
connect(qApp, &QApplication::fontChanged, m_textDoc, &QTextDocument::setDefaultFont);
|
||||
}
|
||||
|
||||
void ResultViewDelegate::setSearchKeyword(const QString ®FindKeyWords)
|
||||
|
|
Loading…
Reference in New Issue