9 : QItemSelectionModel( model, parent )
10 , mFeatureModel( featureModel )
11 , mSyncEnabled( true )
12 , mClearAndSelectBuffer( false )
62 foreach (
const QModelIndex
index, selection.indexes() )
71 if ( command.testFlag( QItemSelectionModel::ClearAndSelect ) )
89 else if ( command.testFlag( QItemSelectionModel::Select ) )
106 else if ( command.testFlag( QItemSelectionModel::Deselect ) )
126 QModelIndexList updatedIndexes;
127 foreach ( QModelIndex idx, selection.indexes() )
144 if ( clearAndSelect )
150 QModelIndexList updatedIndexes;
167 QModelIndexList indexes;
168 const QAbstractItemModel* model = index.model();
169 int row = index.row();
174 for (
int column = 0; column < model->columnCount(); ++column )
176 indexes.append( model->index( row, column ) );