Doc: Improve description of QModelIndex::operator==

List the values that are compared by the comparison operator overloads,
rather than the less specific "all values".

Task-number: QTBUG-68877
Change-Id: Id4df02b9019e13113fd38a598b8349293fab7915
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Paul Wicking 2018-06-21 14:42:46 +02:00
parent 64286ff96a
commit be0a6ab4c8

View File

@ -182,8 +182,8 @@ QPersistentModelIndex::~QPersistentModelIndex()
Returns \c{true} if this persistent model index is equal to the \a other
persistent model index; otherwise returns \c{false}.
All values in the persistent model index are used when comparing
with another persistent model index.
The internal data pointer, row, column, and model values in the persistent
model index are used when comparing with another persistent model index.
*/
bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other) const
@ -199,8 +199,8 @@ bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other) const
Returns \c{true} if this persistent model index is smaller than the \a other
persistent model index; otherwise returns \c{false}.
All values in the persistent model index are used when comparing
with another persistent model index.
The internal data pointer, row, column, and model values in the persistent
model index are used when comparing with another persistent model index.
*/
bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other) const
@ -275,13 +275,11 @@ QPersistentModelIndex::operator const QModelIndex&() const
}
/*!
\fn bool QPersistentModelIndex::operator==(const QModelIndex &other) const
Returns \c{true} if this persistent model index refers to the same location as
the \a other model index; otherwise returns \c{false}.
All values in the persistent model index are used when comparing with
another model index.
The internal data pointer, row, column, and model values in the persistent
model index are used when comparing with another model index.
*/
bool QPersistentModelIndex::operator==(const QModelIndex &other) const
@ -1167,8 +1165,8 @@ void QAbstractItemModel::resetInternalData()
Returns \c{true} if this model index refers to the same location as the
\a other model index; otherwise returns \c{false}.
All values in the model index are used when comparing with another model
index.
The internal data pointer, row, column, and model values are used when
comparing with another model index.
*/