!16 修复搜索结果数据量较大时出现的搜索结果区域可以滚动的问题;

Merge pull request !16 from 纪笑旭/ok-upstream
This commit is contained in:
iaom 2022-10-18 07:46:47 +00:00 committed by Gitee
commit f1a9a65f92
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -282,10 +282,10 @@ void ResultView::onRowSelectedSlot(const QModelIndex &index)
void ResultView::onItemListChanged(const int &count)
{
m_count = count;
Q_EMIT this->listLengthChanged(count);
QModelIndex index = this->currentIndex();
m_model->refresh();
this->setCurrentIndex(index);
Q_EMIT this->listLengthChanged(count);
}
void ResultView::setExpanded(const bool &is_expanded)