qt5base-lts/tests/auto/corelib/itemmodels
David Faure 736ac19156 QAbstractProxyModel: fix canDropMimeData/dropMimeData implementations
The code in 4696e9dbaa was incorrect. It is perfectly valid to call
these methods with row=-1 column=1 parent=some_index, this is exactly
what happens in QListView and QTableView. Child row/column is only for
trees.

Move the coordinate mapping from QSortFilterProxyModel into a new
mapDropCoordinatesToSource internal method, used by QAbstractProxyModel.

Task-number: QTBUG-39549
Change-Id: I3312210473d84b639cbe4c01f70ea36437db3e91
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Stephen Kelly <steveire@gmail.com>
2014-11-24 08:05:43 +01:00
..
qabstractitemmodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qabstractproxymodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qidentityproxymodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qitemmodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qitemselectionmodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsortfilterproxymodel QAbstractProxyModel: fix canDropMimeData/dropMimeData implementations 2014-11-24 08:05:43 +01:00
qstringlistmodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
itemmodels.pro exclude gui-needing tests from -no-gui build 2013-10-18 20:05:27 +02:00