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

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 2076 of file qabstractitemmodel.cpp.

References QAbstractItemModel::rowsInserted().

Referenced by QScriptBreakpointsModel::addBreakpoint(), PiecesModel::dropMimeData(), FileListModel::fetchMore(), QTreeModel::insertRows(), TableModel::insertRows(), QStringListModel::insertRows(), TreeModel::insertRows(), QTableModel::insertRows(), QListModel::insertRows(), QSqlTableModel::insertRows(), LinearModel::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);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index