summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qabstractitemmodel.cpp
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2009-09-25 14:44:15 (GMT)
committerJeremy Katz <jeremy.katz@nokia.com>2009-09-25 14:44:15 (GMT)
commit2c37fde6b5a503a14bb4655a785d51be77fe889b (patch)
treefe35633047ac706f4736fc119bcd2abbb6d79d22 /src/corelib/kernel/qabstractitemmodel.cpp
parent2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1 (diff)
parentb4c52810efd42ba9cd8087180a5bf9d48c18de84 (diff)
downloadQt-2c37fde6b5a503a14bb4655a785d51be77fe889b.zip
Qt-2c37fde6b5a503a14bb4655a785d51be77fe889b.tar.gz
Qt-2c37fde6b5a503a14bb4655a785d51be77fe889b.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/corelib/kernel/qabstractitemmodel.cpp')
-rw-r--r--src/corelib/kernel/qabstractitemmodel.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.cpp b/src/corelib/kernel/qabstractitemmodel.cpp
index ce6c844..8e2273d 100644
--- a/src/corelib/kernel/qabstractitemmodel.cpp
+++ b/src/corelib/kernel/qabstractitemmodel.cpp
@@ -1226,6 +1226,9 @@ void QAbstractItemModelPrivate::columnsRemoved(const QModelIndex &parent,
/*!
\fn bool QAbstractItemModel::insertRow(int row, const QModelIndex &parent)
+ \note The base class implementation of this function does nothing and
+ returns false.
+
Inserts a single row before the given \a row in the child items of the
\a parent specified.
@@ -1834,6 +1837,9 @@ void QAbstractItemModel::setSupportedDragActions(Qt::DropActions actions)
}
/*!
+ \note The base class implementation of this function does nothing and
+ returns false.
+
On models that support this, inserts \a count rows into the model before
the given \a row. Items in the new row will be children of the item
represented by the \a parent model index.
@@ -1849,11 +1855,11 @@ void QAbstractItemModel::setSupportedDragActions(Qt::DropActions actions)
Returns true if the rows were successfully inserted; otherwise returns
false.
- The base class implementation does nothing and returns false.
-
If you implement your own model, you can reimplement this function if you
want to support insertions. Alternatively, you can provide your own API for
- altering the data.
+ altering the data. In either case, you will need to call
+ beginInsertRows() and endInsertRows() to notify other components that the
+ model has changed.
\sa insertColumns(), removeRows(), beginInsertRows(), endInsertRows()
*/