diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-10-23 14:43:09 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-11-07 06:25:02 +0100 |
commit | 6206c6c189407f2d38fae921f3620a1c2a6f8d72 (patch) | |
tree | 642b13262a410c44d0c141a9f8caf3d547adce5a /src/corelib/time/qdatetime.cpp | |
parent | cfac358fa3cfe7056f9d71b7cdb8e557dd711810 (diff) |
Make QDate's operators hidden friends
Adjust the documentation to match and add missing \c before false in
two cases.
Change-Id: Ic287c4de0b131c3500ee72bf1201900dc3788756
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/time/qdatetime.cpp')
-rw-r--r-- | src/corelib/time/qdatetime.cpp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp index 506430e154..eb9d5a82fd 100644 --- a/src/corelib/time/qdatetime.cpp +++ b/src/corelib/time/qdatetime.cpp @@ -1380,46 +1380,44 @@ qint64 QDate::daysTo(QDate d) const /*! - \fn bool QDate::operator==(QDate d) const + \fn bool QDate::operator==(QDate lhs, QDate rhs) - Returns \c true if this date and \a d represent the same day, otherwise + Returns \c true if \a lhs and \a rhs represent the same day, otherwise \c false. */ /*! - \fn bool QDate::operator!=(QDate d) const + \fn bool QDate::operator!=(QDate lhs, QDate rhs) - Returns \c true if this date is different from \a d; otherwise + Returns \c true if \a lhs and \a rhs represent distinct days; otherwise returns \c false. \sa operator==() */ /*! - \fn bool QDate::operator<(QDate d) const + \fn bool QDate::operator<(QDate lhs, QDate rhs) - Returns \c true if this date is earlier than \a d; otherwise returns - false. + Returns \c true if \a lhs is earlier than \a rhs; otherwise returns \c false. */ /*! - \fn bool QDate::operator<=(QDate d) const + \fn bool QDate::operator<=(QDate lhs, QDate rhs) - Returns \c true if this date is earlier than or equal to \a d; + Returns \c true if \a lhs is earlier than or equal to \a rhs; otherwise returns \c false. */ /*! - \fn bool QDate::operator>(QDate d) const + \fn bool QDate::operator>(QDate lhs, QDate rhs) - Returns \c true if this date is later than \a d; otherwise returns - false. + Returns \c true if \a lhs is later than \a rhs; otherwise returns \c false. */ /*! - \fn bool QDate::operator>=(QDate d) const + \fn bool QDate::operator>=(QDate lhs, QDate rhs) - Returns \c true if this date is later than or equal to \a d; + Returns \c true if \a lhs is later than or equal to \a rhs; otherwise returns \c false. */ |