Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QAbstractItemModel::endInsertRows (  )  [protected, inherited]

Ends a row insertion operation.

When reimplementing insertRows() in a subclass, you must call this function after inserting data into the model's underlying data store.

See also:
beginInsertRows()

Definition at line 2084 of file qabstractitemmodel.cpp.

References QAbstractItemModel::rowsInserted().

Referenced by TableModel::insertRows(), QStringListModel::insertRows(), TreeModel::insertRows(), QSqlTableModel::insertRows(), StringListModel::insertRows(), and QSqlQueryModel::setQuery().

{
    Q_D(QAbstractItemModel);
    QAbstractItemModelPrivate::Change change = d->changes.pop();
    d->rowsInserted(change.parent, change.first, change.last);
    emit rowsInserted(change.parent, change.first, change.last);
}


Generated by  Doxygen 1.6.0   Back to index