修复搜索结果数据量较大时出现的搜索结果区域可以滚动的问题;
This commit is contained in:
parent
6bfeb54d19
commit
463e3447b9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue