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>
This commit is contained in:
parent
ef93397d70
commit
e89547fff4
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user