fix bug: #96279 the background dose not follow the theme to change.

This commit is contained in:
hewenfei 2022-07-13 15:13:09 +08:00
parent 720ac7304c
commit 435947c311
2 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,11 @@ SearchLineEdit::SearchLineEdit(QWidget *parent) : QLineEdit(parent) {
m_timer->start(0.1 * 1000); m_timer->start(0.1 * 1000);
} }
}); });
//跟随主题透明度变化
connect(qApp, &QApplication::paletteChanged, this, [=]() {
update();
});
} }
SearchLineEdit::~SearchLineEdit() { SearchLineEdit::~SearchLineEdit() {

View File

@ -173,6 +173,10 @@ void SearchResultPage::initConnections()
sendResizeWidthSignal(280); sendResizeWidthSignal(280);
}); });
connect(this, &SearchResultPage::setSelectionInfo, m_resultArea, &ResultArea::setSelectionInfo); connect(this, &SearchResultPage::setSelectionInfo, m_resultArea, &ResultArea::setSelectionInfo);
//跟随主题透明度变化
connect(qApp, &QApplication::paletteChanged, this, [=]() {
update();
});
} }
void SearchResultPage::setupConnectionsForWidget(ResultWidget *widget) void SearchResultPage::setupConnectionsForWidget(ResultWidget *widget)