From ff6e8460e601a2fb1eb41a1907417524a67505bb Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 22 Mar 2012 17:31:59 +0100 Subject: 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 --- src/corelib/itemmodels/qabstractitemmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib') 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 -- cgit v1.2.3