修复标题栏展开置顶后,点击收回位置错误问题

This commit is contained in:
iaom 2022-06-17 15:55:37 +08:00
parent 7909eb3ba0
commit 1512502cea
1 changed files with 2 additions and 1 deletions

View File

@ -510,8 +510,9 @@ void ResultArea::setupConnectionsForWidget(ResultWidget *widget)
}); });
connect(widget, &ResultWidget::retractClicked, this, [=] () {//点击收起搜索结果后 connect(widget, &ResultWidget::retractClicked, this, [=] () {//点击收起搜索结果后
if (!m_titleLabel->isHidden()) { if (!m_titleLabel->isHidden()) {
m_titleLabel->hide();
this->setViewportMargins(0,0,0,0); this->setViewportMargins(0,0,0,0);
this->verticalScrollBar()->setValue(widget->pos().ry());
m_titleLabel->hide();
} }
}); });
connect(widget, &ResultWidget::sendBestListData, m_bestListWidget, &BestListWidget::sendBestListData); connect(widget, &ResultWidget::sendBestListData, m_bestListWidget, &BestListWidget::sendBestListData);