forked from openkylin/ukui-search
!16 修复搜索结果数据量较大时出现的搜索结果区域可以滚动的问题;
Merge pull request !16 from 纪笑旭/ok-upstream
This commit is contained in:
commit
f1a9a65f92
|
@ -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