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

修复bug:#96279 【搜索】打开搜索页面后调整透明度会造成ui错误

See merge request kylin-desktop/ukui-search!349
This commit is contained in:
PengfeiZhang 2022-07-19 01:56:41 +00:00
commit 3c7ffb4997
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)