From e89547fff44b5558039c04397d7dc8a03cd504e3 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Mon, 15 Jul 2013 11:55:24 +0200 Subject: 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 Reviewed-by: Geir Vattekar --- src/corelib/itemmodels/qabstractitemmodel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/corelib') 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} -- cgit v1.2.3