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

This commit is contained in:
jixiaoxu 2022-10-18 15:43:08 +08:00
parent 6bfeb54d19
commit 463e3447b9
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)