forked from openkylin/ukui-search
fix bug: #96279 the background dose not follow the theme to change.
This commit is contained in:
parent
720ac7304c
commit
435947c311
|
@ -75,6 +75,11 @@ SearchLineEdit::SearchLineEdit(QWidget *parent) : QLineEdit(parent) {
|
|||
m_timer->start(0.1 * 1000);
|
||||
}
|
||||
});
|
||||
|
||||
//跟随主题透明度变化
|
||||
connect(qApp, &QApplication::paletteChanged, this, [=]() {
|
||||
update();
|
||||
});
|
||||
}
|
||||
|
||||
SearchLineEdit::~SearchLineEdit() {
|
||||
|
|
|
@ -173,6 +173,10 @@ void SearchResultPage::initConnections()
|
|||
sendResizeWidthSignal(280);
|
||||
});
|
||||
connect(this, &SearchResultPage::setSelectionInfo, m_resultArea, &ResultArea::setSelectionInfo);
|
||||
//跟随主题透明度变化
|
||||
connect(qApp, &QApplication::paletteChanged, this, [=]() {
|
||||
update();
|
||||
});
|
||||
}
|
||||
|
||||
void SearchResultPage::setupConnectionsForWidget(ResultWidget *widget)
|
||||
|
|
Loading…
Reference in New Issue