291
291
// Calling setCurrentItem() would trigger the selectionChanged signal, but we want to
292
292
// emit it only once in this function -> change the current item manually and emit currentChanged
293
293
m_currentItem = indexAfterRangesRemoving(m_currentItem, itemRanges);
295
300
m_currentItem = qMin(previousCurrent, m_model->count() - 1);