summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2010-12-04 18:48:57 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2011-06-27 16:17:20 (GMT)
commitb64b3193a39dc52c520fa74a268f068072468473 (patch)
tree17e4da2e7bdf1a7990c81cc5e29f91de3ee996cf
parent0f6853e9c775dd8fbb64f66119c2c9b2ea23da29 (diff)
downloadQt-b64b3193a39dc52c520fa74a268f068072468473.zip
Qt-b64b3193a39dc52c520fa74a268f068072468473.tar.gz
Qt-b64b3193a39dc52c520fa74a268f068072468473.tar.bz2
Remove misleading and incorrect information from dropMimeData docs.
It is not the responsibility of the view to insert data into the model after a dropMimeData call.
-rw-r--r--src/corelib/kernel/qabstractitemmodel.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.cpp b/src/corelib/kernel/qabstractitemmodel.cpp
index 54cc301..81cb5ff 100644
--- a/src/corelib/kernel/qabstractitemmodel.cpp
+++ b/src/corelib/kernel/qabstractitemmodel.cpp
@@ -1767,18 +1767,19 @@ QMimeData *QAbstractItemModel::mimeData(const QModelIndexList &indexes) const
Returns true if the data and action can be handled by the model; otherwise
returns false.
- Although the specified \a row, \a column and \a parent indicate the
- location of an item in the model where the operation ended, it is the
- responsibility of the view to provide a suitable location for where the
- data should be inserted.
+ The specified \a row, \a column and \a parent indicate the location of an
+ item in the model where the operation ended. It is the responsibility of
+ the model to complete the action at the correct location.
For instance, a drop action on an item in a QTreeView can result in new
items either being inserted as children of the item specified by \a row,
\a column, and \a parent, or as siblings of the item.
- When row and column are -1 it means that it is up to the model to decide
- where to place the data. This can occur in a tree when data is dropped on
- a parent. Models will usually append the data to the parent in this case.
+ When \a row and \a column are -1 it means that the dropped data should be
+ considered as dropped directly on \a parent. Usually this will mean
+ appending the data as child items of \a parent. If \a row and column are
+ greater than or equal zero, it means that the drop occured just before the
+ specified \a row and \a column in the specified \a parent.
\sa supportedDropActions(), {Using drag and drop with item views}
*/