summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-03-22 17:31:59 +0100
committerQt by Nokia <qt-info@nokia.com>2012-04-04 17:35:33 +0200
commitff6e8460e601a2fb1eb41a1907417524a67505bb (patch)
tree97f376380a3ab9c371f768da1dc5c20e34a51ba1 /src
parent9a09b0c08c41e2153b79aa7848bd7206f4e11d19 (diff)
Document that the order of results from QAIM::match are not relevant.
This will allow fixing of QTBUG-10160 in Qt 5.1. Change-Id: I1ea7579cb4227f9940847c62d5a520c7cee3b0c5 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/itemmodels/qabstractitemmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/itemmodels/qabstractitemmodel.cpp b/src/corelib/itemmodels/qabstractitemmodel.cpp
index c6f174bcf8..3d9af90682 100644
--- a/src/corelib/itemmodels/qabstractitemmodel.cpp
+++ b/src/corelib/itemmodels/qabstractitemmodel.cpp
@@ -2096,7 +2096,9 @@ QModelIndex QAbstractItemModel::buddy(const QModelIndex &index) const
Returns a list of indexes for the items in the column of the \a start index
where data stored under the given \a role matches the specified \a value.
The way the search is performed is defined by the \a flags given. The list
- that is returned may be empty.
+ that is returned may be empty. Note also that the order of results in the
+ list may not correspond to the order in the model, if for example a proxy
+ model is used. The order of the results can not be relied upon.
The search begins from the \a start index, and continues until the number
of matching data items equals \a hits, the search reaches the last row, or