Lines Matching refs:old_index
96 int old_index = 0;
99 while( ( old_index < myRows.size() ) || ( new_index < trackers.size() ) )
101 if( old_index == myRows.size() )
104 beginInsertRows( QModelIndex( ), old_index, old_index );
105 myRows.insert( old_index, trackers.at( new_index ) );
107 ++old_index;
113 beginRemoveRows( QModelIndex( ), old_index, old_index );
114 myRows.remove( old_index );
117 else if( comp( myRows.at(old_index), trackers.at(new_index) ) )
120 beginRemoveRows( QModelIndex( ), old_index, old_index );
121 myRows.remove( old_index );
124 else if( comp( trackers.at(new_index), myRows.at(old_index) ) )
127 beginInsertRows( QModelIndex( ), old_index, old_index );
128 myRows.insert( old_index, trackers.at( new_index ) );
130 ++old_index;
135 myRows[old_index].st = trackers.at(new_index).st;
138 dataChanged( index(old_index,0), index(old_index,0) );
139 ++old_index;