summaryrefslogtreecommitdiffstats
path: root/src/corelib/itemmodels/qabstractitemmodel.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2013-07-15 11:55:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-16 14:23:13 +0200
commite89547fff44b5558039c04397d7dc8a03cd504e3 (patch)
treebca36f051cafc0bd5a9147f4ba6a258b85448600 /src/corelib/itemmodels/qabstractitemmodel.cpp
parentef93397d7039ef7b4f4f1d41dcb4e5f50cb8481b (diff)
Doc: Update description of QAbstractItemModel::supportedDragActions()
Update documentation for the QAbstractItemModel::supportedDragActions() (virtual since 5.0) and the obsoleted setter function. Task-number: QTBUG-32410 Change-Id: I4f77601bca63e5f782ade1f577104500f541bbb1 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
Diffstat (limited to 'src/corelib/itemmodels/qabstractitemmodel.cpp')
-rw-r--r--src/corelib/itemmodels/qabstractitemmodel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/itemmodels/qabstractitemmodel.cpp b/src/corelib/itemmodels/qabstractitemmodel.cpp
index f152dec5e6..4162e843a7 100644
--- a/src/corelib/itemmodels/qabstractitemmodel.cpp
+++ b/src/corelib/itemmodels/qabstractitemmodel.cpp
@@ -1911,8 +1911,8 @@ Qt::DropActions QAbstractItemModel::supportedDropActions() const
/*!
Returns the actions supported by the data in this model.
- The default implementation returns supportedDropActions() unless specific
- values have been set with setSupportedDragActions().
+ The default implementation returns supportedDropActions(). Reimplement
+ this function if you wish to support additional actions.
supportedDragActions() is used by QAbstractItemView::startDrag() as the
default values when a drag occurs.
@@ -1941,6 +1941,8 @@ void QAbstractItemModel::doSetSupportedDragActions(Qt::DropActions actions)
\obsolete
\fn void QAbstractItemModel::setSupportedDragActions(Qt::DropActions actions)
+ This function is obsolete. Reimplement supportedDragActions() instead.
+
Sets the supported drag \a actions for the items in the model.
\sa supportedDragActions(), {Using drag and drop with item views}