Fix documentation for hidden friend operators

At least for qdoc, hidden friends are class members.

Change-Id: I6eaa21565937cd49c0905ee47b8b82b0c1765bc1
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
Volker Hilsheimer 2020-10-22 16:21:52 +02:00
parent 35e4740385
commit a6327d7305
11 changed files with 80 additions and 177 deletions

View File

@ -3356,16 +3356,14 @@
#endif #endif
/*! /*!
\fn bool operator==(QKeyCombination lhs, QKeyCombination rhs) noexcept \fn bool QKeyCombination::operator==(QKeyCombination lhs, QKeyCombination rhs) noexcept
\relates QKeyCombination
Returns \c true if \a lhs and \a rhs have the same combination Returns \c true if \a lhs and \a rhs have the same combination
of key and modifiers, and \c false otherwise. of key and modifiers, and \c false otherwise.
*/ */
/*! /*!
\fn bool operator!=(QKeyCombination lhs, QKeyCombination rhs) noexcept \fn bool QKeyCombination::operator!=(QKeyCombination lhs, QKeyCombination rhs) noexcept
\relates QKeyCombination
Returns \c true if \a lhs and \a rhs have different combinations Returns \c true if \a lhs and \a rhs have different combinations
of key and modifiers, otherwise \c false. of key and modifiers, otherwise \c false.

View File

@ -693,8 +693,7 @@ inline QRandomGenerator::SystemGenerator &QRandomGenerator::SystemGenerator::sel
*/ */
/*! /*!
\fn bool operator!=(const QRandomGenerator &rng1, const QRandomGenerator &rng2) \fn bool QRandomGenerator::operator!=(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
\relates QRandomGenerator
Returns true if the two the two engines \a rng1 and \a rng2 are at Returns true if the two the two engines \a rng1 and \a rng2 are at
different states or if one of them is reading from the operating system different states or if one of them is reading from the operating system

View File

@ -873,8 +873,7 @@ QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs) noexcep
*/ */
/*! /*!
\fn bool operator==(QDeadlineTimer d1, QDeadlineTimer d2) \fn bool QDeadlineTimer::operator==(QDeadlineTimer d1, QDeadlineTimer::QDeadlineTimer d2)
\relates QDeadlineTimer
Returns true if the deadline on \a d1 and the deadline in \a d2 are the Returns true if the deadline on \a d1 and the deadline in \a d2 are the
same, false otherwise. The timer type used to create the two deadlines is same, false otherwise. The timer type used to create the two deadlines is
@ -887,8 +886,7 @@ QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs) noexcep
*/ */
/*! /*!
\fn bool operator!=(QDeadlineTimer d1, QDeadlineTimer d2) \fn bool QDeadlineTimer::operator!=(QDeadlineTimer d1, QDeadlineTimer d2)
\relates QDeadlineTimer
Returns true if the deadline on \a d1 and the deadline in \a d2 are Returns true if the deadline on \a d1 and the deadline in \a d2 are
diferent, false otherwise. The timer type used to create the two deadlines diferent, false otherwise. The timer type used to create the two deadlines
@ -901,8 +899,7 @@ QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs) noexcep
*/ */
/*! /*!
\fn bool operator<(QDeadlineTimer d1, QDeadlineTimer d2) \fn bool QDeadlineTimer::operator<(QDeadlineTimer d1, QDeadlineTimer d2)
\relates QDeadlineTimer
Returns true if the deadline on \a d1 is earlier than the deadline in \a Returns true if the deadline on \a d1 is earlier than the deadline in \a
d2, false otherwise. The timer type used to create the two deadlines is d2, false otherwise. The timer type used to create the two deadlines is
@ -915,8 +912,7 @@ QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs) noexcep
*/ */
/*! /*!
\fn bool operator<=(QDeadlineTimer d1, QDeadlineTimer d2) \fn bool QDeadlineTimer::operator<=(QDeadlineTimer d1, QDeadlineTimer d2)
\relates QDeadlineTimer
Returns true if the deadline on \a d1 is earlier than or the same as the Returns true if the deadline on \a d1 is earlier than or the same as the
deadline in \a d2, false otherwise. The timer type used to create the two deadline in \a d2, false otherwise. The timer type used to create the two
@ -929,8 +925,7 @@ QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs) noexcep
*/ */
/*! /*!
\fn bool operator>(QDeadlineTimer d1, QDeadlineTimer d2) \fn bool QDeadlineTimer::operator>(QDeadlineTimer d1, QDeadlineTimer d2)
\relates QDeadlineTimer
Returns true if the deadline on \a d1 is later than the deadline in \a Returns true if the deadline on \a d1 is later than the deadline in \a
d2, false otherwise. The timer type used to create the two deadlines is d2, false otherwise. The timer type used to create the two deadlines is
@ -943,8 +938,7 @@ QDeadlineTimer QDeadlineTimer::addNSecs(QDeadlineTimer dt, qint64 nsecs) noexcep
*/ */
/*! /*!
\fn bool operator>=(QDeadlineTimer d1, QDeadlineTimer d2) \fn bool QDeadlineTimer::operator>=(QDeadlineTimer d1, QDeadlineTimer d2)
\relates QDeadlineTimer
Returns true if the deadline on \a d1 is later than or the same as the Returns true if the deadline on \a d1 is later than or the same as the
deadline in \a d2, false otherwise. The timer type used to create the two deadline in \a d2, false otherwise. The timer type used to create the two
@ -981,8 +975,7 @@ QDeadlineTimer operator+(QDeadlineTimer dt, qint64 msecs)
} }
/*! /*!
\fn QDeadlineTimer operator+(qint64 msecs, QDeadlineTimer dt) \fn QDeadlineTimer QDeadlineTimer::operator+(qint64 msecs, QDeadlineTimer dt)
\relates QDeadlineTimer
Returns a QDeadlineTimer object whose deadline is \a msecs later than the Returns a QDeadlineTimer object whose deadline is \a msecs later than the
deadline stored in \a dt. If \a dt is set to never expire, this function deadline stored in \a dt. If \a dt is set to never expire, this function
@ -992,8 +985,7 @@ QDeadlineTimer operator+(QDeadlineTimer dt, qint64 msecs)
*/ */
/*! /*!
\fn QDeadlineTimer operator-(QDeadlineTimer dt, qint64 msecs) \fn QDeadlineTimer QDeadlineTimer::operator-(QDeadlineTimer dt, qint64 msecs)
\relates QDeadlineTimer
Returns a QDeadlineTimer object whose deadline is \a msecs before the Returns a QDeadlineTimer object whose deadline is \a msecs before the
deadline stored in \a dt. If \a dt is set to never expire, this function deadline stored in \a dt. If \a dt is set to never expire, this function

View File

@ -804,18 +804,16 @@ void QMetaType::unregisterMetaType(QMetaType type)
Returns the QMetaType corresponding to the type in the template parameter. Returns the QMetaType corresponding to the type in the template parameter.
*/ */
/*! \fn bool operator==(QMetaType a, QMetaType b) /*! \fn bool QMetaType::operator==(QMetaType a, QMetaType b)
\since 5.15 \since 5.15
\relates QMetaType
\overload \overload
Returns \c true if the QMetaType \a a represents the same type Returns \c true if the QMetaType \a a represents the same type
as the QMetaType \a b, otherwise returns \c false. as the QMetaType \a b, otherwise returns \c false.
*/ */
/*! \fn bool operator!=(QMetaType a, QMetaType b) /*! \fn bool QMetaType::operator!=(QMetaType a, QMetaType b)
\since 5.15 \since 5.15
\relates QMetaType
\overload \overload
Returns \c true if the QMetaType \a a represents a different type Returns \c true if the QMetaType \a a represents a different type

View File

@ -2064,38 +2064,12 @@ bool QVariant::view(int type, void *ptr)
} }
/*! /*!
\fn bool operator==(const QVariant &v1, const QVariant &v2) \fn bool QVariant::operator==(const QVariant &v1, const QVariant &v2)
\relates QVariant
Returns \c true if \a v1 and \a v2 are equal; otherwise returns \c false. Returns \c true if \a v1 and \a v2 are equal; otherwise returns \c false.
If \a v1 and \a v2 have the same \l{QVariant::}{type()}, the QVariant uses the equality operator of the type() contained to check for
type's equality operator is used for comparison. If not, it is equality.
attempted to \l{QVariant::}{convert()} \a v2 to the same type as
\a v1. See \l{QVariant::}{canConvert()} for a list of possible
conversions.
The result of the function is not affected by the result of QVariant::isNull,
which means that two values can be equal even if one of them is null and
another is not.
*/
/*!
\fn bool operator!=(const QVariant &v1, const QVariant &v2)
\relates QVariant
Returns \c false if \a v1 and \a v2 are equal; otherwise returns \c true.
*/
/*! \fn bool QVariant::operator==(const QVariant &v) const
Compares this QVariant with \a v and returns \c true if they are
equal; otherwise returns \c false.
QVariant uses the equality operator of the type() it contains to
check for equality.
Variants of different types will always compare as not equal with a few Variants of different types will always compare as not equal with a few
exceptions: exceptions:
@ -2109,16 +2083,19 @@ bool QVariant::view(int type, void *ptr)
\li If both variants contain pointers to QObject derived types, QVariant \li If both variants contain pointers to QObject derived types, QVariant
will check whether the types are related and point to the same object. will check whether the types are related and point to the same object.
\endlist \endlist
The result of the function is not affected by the result of QVariant::isNull,
which means that two values can be equal even if one of them is null and
another is not.
*/ */
/*! /*!
\fn bool QVariant::operator!=(const QVariant &v) const \fn bool QVariant::operator!=(const QVariant &v1, const QVariant &v2)
Compares this QVariant with \a v and returns \c true if they are not Returns \c false if \a v1 and \a v2 are equal; otherwise returns \c true.
equal; otherwise returns \c false.
QVariant uses the equality operator of the type() it contains to QVariant uses the equality operator of the type() contained to check for
check for equality. equality.
Variants of different types will always compare as not equal with a few Variants of different types will always compare as not equal with a few
exceptions: exceptions:

View File

@ -1772,54 +1772,42 @@ QDataStream &operator>>(QDataStream &in, QChar &chr)
*****************************************************************************/ *****************************************************************************/
/*! /*!
\fn bool operator==(QChar c1, QChar c2) \fn bool QChar::operator==(QChar c1, QChar c2)
\relates QChar
Returns \c true if \a c1 and \a c2 are the same Unicode character; Returns \c true if \a c1 and \a c2 are the same Unicode character;
otherwise returns \c false. otherwise returns \c false.
*/ */
/*! /*!
\fn int operator!=(QChar c1, QChar c2) \fn int QChar::operator!=(QChar c1, QChar c2)
\relates QChar
Returns \c true if \a c1 and \a c2 are not the same Unicode Returns \c true if \a c1 and \a c2 are not the same Unicode
character; otherwise returns \c false. character; otherwise returns \c false.
*/ */
/*! /*!
\fn int operator<=(QChar c1, QChar c2) \fn int QChar::operator<=(QChar c1, QChar c2)
\relates QChar
Returns \c true if the numeric Unicode value of \a c1 is less than Returns \c true if the numeric Unicode value of \a c1 is less than
or equal to that of \a c2; otherwise returns \c false. or equal to that of \a c2; otherwise returns \c false.
*/ */
/*! /*!
\fn int operator>=(QChar c1, QChar c2) \fn int QChar::operator>=(QChar c1, QChar c2)
\relates QChar
Returns \c true if the numeric Unicode value of \a c1 is greater than Returns \c true if the numeric Unicode value of \a c1 is greater than
or equal to that of \a c2; otherwise returns \c false. or equal to that of \a c2; otherwise returns \c false.
*/ */
/*! /*!
\fn int operator<(QChar c1, QChar c2) \fn int QChar::operator<(QChar c1, QChar c2)
\relates QChar
Returns \c true if the numeric Unicode value of \a c1 is less than Returns \c true if the numeric Unicode value of \a c1 is less than
that of \a c2; otherwise returns \c false. that of \a c2; otherwise returns \c false.
*/ */
/*! /*!
\fn int operator>(QChar c1, QChar c2) \fn int QChar::operator>(QChar c1, QChar c2)
\relates QChar
Returns \c true if the numeric Unicode value of \a c1 is greater than Returns \c true if the numeric Unicode value of \a c1 is greater than
that of \a c2; otherwise returns \c false. that of \a c2; otherwise returns \c false.

View File

@ -3654,9 +3654,7 @@ bool QString::operator<(QLatin1String other) const noexcept
\sa QT_NO_CAST_FROM_ASCII \sa QT_NO_CAST_FROM_ASCII
*/ */
/*! \fn bool operator<=(const QString &s1, const QString &s2) /*! \fn bool QString::operator<=(const QString &s1, const QString &s2)
\relates QString
Returns \c true if string \a s1 is lexically less than or equal to Returns \c true if string \a s1 is lexically less than or equal to
string \a s2; otherwise returns \c false. string \a s2; otherwise returns \c false.
@ -3703,8 +3701,7 @@ bool QString::operator<(QLatin1String other) const noexcept
\sa QT_NO_CAST_FROM_ASCII \sa QT_NO_CAST_FROM_ASCII
*/ */
/*! \fn bool operator>(const QString &s1, const QString &s2) /*! \fn bool QString::operator>(const QString &s1, const QString &s2)
\relates QString
Returns \c true if string \a s1 is lexically greater than string \a s2; Returns \c true if string \a s1 is lexically greater than string \a s2;
otherwise returns \c false. otherwise returns \c false.
@ -3754,8 +3751,7 @@ bool QString::operator>(QLatin1String other) const noexcept
\sa QT_NO_CAST_FROM_ASCII \sa QT_NO_CAST_FROM_ASCII
*/ */
/*! \fn bool operator>=(const QString &s1, const QString &s2) /*! \fn bool QString::operator>=(const QString &s1, const QString &s2)
\relates QString
Returns \c true if string \a s1 is lexically greater than or equal to Returns \c true if string \a s1 is lexically greater than or equal to
string \a s2; otherwise returns \c false. string \a s2; otherwise returns \c false.
@ -3802,8 +3798,7 @@ bool QString::operator>(QLatin1String other) const noexcept
\sa QT_NO_CAST_FROM_ASCII \sa QT_NO_CAST_FROM_ASCII
*/ */
/*! \fn bool operator!=(const QString &s1, const QString &s2) /*! \fn bool QString::operator!=(const QString &s1, const QString &s2)
\relates QString
Returns \c true if string \a s1 is not equal to string \a s2; Returns \c true if string \a s1 is not equal to string \a s2;
otherwise returns \c false. otherwise returns \c false.

View File

@ -89,8 +89,7 @@
\sa operator*() \sa operator*()
*/ */
/*! \fn template<typename Key, typename T, class Iterator> bool operator==(QKeyValueIterator<Key, T, Iterator> lhs, QKeyValueIterator<Key, T, Iterator> rhs) /*! \fn template<typename Key, typename T, class Iterator> bool QKeyValueIterator<Key, T, Iterator>::operator==(QKeyValueIterator<Key, T, Iterator> lhs, QKeyValueIterator<Key, T, Iterator> rhs)
\relates QKeyValueIterator
Returns \c true if \a rhs points to the same item as \a lhs otherwise returns Returns \c true if \a rhs points to the same item as \a lhs otherwise returns
\c false. \c false.
@ -98,8 +97,7 @@
\sa operator!=() \sa operator!=()
*/ */
/*! \fn template<typename Key, typename T, class Iterator> bool operator!=(QKeyValueIterator<Key, T, Iterator> lhs, QKeyValueIterator<Key, T, Iterator> rhs) const /*! \fn template<typename Key, typename T, class Iterator> bool QKeyValueIterator<Key, T, Iterator>::operator!=(QKeyValueIterator<Key, T, Iterator> lhs, QKeyValueIterator<Key, T, Iterator> rhs)
\relates QKeyValueIterator
Returns \c true if \a rhs points to a different item than \a lhs otherwise Returns \c true if \a rhs points to a different item than \a lhs otherwise
returns \c false. returns \c false.

View File

@ -244,23 +244,20 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn bool operator==(const QPoint &p1, const QPoint &p2) \fn bool QPoint::operator==(const QPoint &p1, const QPoint &p2)
\relates QPoint
Returns \c true if \a p1 and \a p2 are equal; otherwise returns Returns \c true if \a p1 and \a p2 are equal; otherwise returns
false. false.
*/ */
/*! /*!
\fn bool operator!=(const QPoint &p1, const QPoint &p2) \fn bool QPoint::operator!=(const QPoint &p1, const QPoint &p2)
\relates QPoint
Returns \c true if \a p1 and \a p2 are not equal; otherwise returns \c false. Returns \c true if \a p1 and \a p2 are not equal; otherwise returns \c false.
*/ */
/*! /*!
\fn const QPoint operator+(const QPoint &p1, const QPoint &p2) \fn QPoint QPoint::operator+(const QPoint &p1, const QPoint &p2)
\relates QPoint
Returns a QPoint object that is the sum of the given points, \a p1 Returns a QPoint object that is the sum of the given points, \a p1
and \a p2; each component is added separately. and \a p2; each component is added separately.
@ -269,8 +266,7 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator-(const QPoint &p1, const QPoint &p2) \fn Point QPoint::operator-(const QPoint &p1, const QPoint &p2)
\relates QPoint
Returns a QPoint object that is formed by subtracting \a p2 from Returns a QPoint object that is formed by subtracting \a p2 from
\a p1; each component is subtracted separately. \a p1; each component is subtracted separately.
@ -279,8 +275,7 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator*(const QPoint &point, float factor) \fn QPoint QPoint::operator*(const QPoint &point, float factor)
\relates QPoint
Returns a copy of the given \a point multiplied by the given \a factor. Returns a copy of the given \a point multiplied by the given \a factor.
@ -291,8 +286,7 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator*(const QPoint &point, double factor) \fn QPoint QPoint::operator*(const QPoint &point, double factor)
\relates QPoint
Returns a copy of the given \a point multiplied by the given \a factor. Returns a copy of the given \a point multiplied by the given \a factor.
@ -303,8 +297,7 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator*(const QPoint &point, int factor) \fn QPoint QPoint::operator*(const QPoint &point, int factor)
\relates QPoint
Returns a copy of the given \a point multiplied by the given \a factor. Returns a copy of the given \a point multiplied by the given \a factor.
@ -312,9 +305,8 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator*(float factor, const QPoint &point) \fn QPoint QPoint::operator*(float factor, const QPoint &point)
\overload \overload
\relates QPoint
Returns a copy of the given \a point multiplied by the given \a factor. Returns a copy of the given \a point multiplied by the given \a factor.
@ -325,9 +317,8 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator*(double factor, const QPoint &point) \fn QPoint QPoint::operator*(double factor, const QPoint &point)
\overload \overload
\relates QPoint
Returns a copy of the given \a point multiplied by the given \a factor. Returns a copy of the given \a point multiplied by the given \a factor.
@ -338,9 +329,8 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator*(int factor, const QPoint &point) \fn QPoint QPoint::operator*(int factor, const QPoint &point)
\overload \overload
\relates QPoint
Returns a copy of the given \a point multiplied by the given \a factor. Returns a copy of the given \a point multiplied by the given \a factor.
@ -348,17 +338,15 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator+(const QPoint &point) \fn QPoint QPoint::operator+(const QPoint &point)
\relates QPoint
\since 5.0 \since 5.0
Returns \a point unmodified. Returns \a point unmodified.
*/ */
/*! /*!
\fn const QPoint operator-(const QPoint &point) \fn QPoint QPoint::operator-(const QPoint &point)
\overload \overload
\relates QPoint
Returns a QPoint object that is formed by changing the sign of Returns a QPoint object that is formed by changing the sign of
both components of the given \a point. both components of the given \a point.
@ -382,8 +370,7 @@ QT_BEGIN_NAMESPACE
*/ */
/*! /*!
\fn const QPoint operator/(const QPoint &point, qreal divisor) \fn const QPoint QPoint::operator/(const QPoint &point, qreal divisor)
\relates QPoint
Returns the QPoint formed by dividing both components of the given \a point Returns the QPoint formed by dividing both components of the given \a point
by the given \a divisor. by the given \a divisor.
@ -688,8 +675,7 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn const QPointF operator+(const QPointF &p1, const QPointF &p2) \fn QPointF QPointF::operator+(const QPointF &p1, const QPointF &p2)
\relates QPointF
Returns a QPointF object that is the sum of the given points, \a p1 Returns a QPointF object that is the sum of the given points, \a p1
and \a p2; each component is added separately. and \a p2; each component is added separately.
@ -698,8 +684,7 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn const QPointF operator-(const QPointF &p1, const QPointF &p2) \fn QPointF QPointF::operator-(const QPointF &p1, const QPointF &p2)
\relates QPointF
Returns a QPointF object that is formed by subtracting \a p2 from \a p1; Returns a QPointF object that is formed by subtracting \a p2 from \a p1;
each component is subtracted separately. each component is subtracted separately.
@ -708,8 +693,7 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn const QPointF operator*(const QPointF &point, qreal factor) \fn QPointF QPointF::operator*(const QPointF &point, qreal factor)
\relates QPointF
Returns a copy of the given \a point, multiplied by the given \a factor. Returns a copy of the given \a point, multiplied by the given \a factor.
@ -717,8 +701,7 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn const QPointF operator*(qreal factor, const QPointF &point) \fn QPointF QPointF::operator*(qreal factor, const QPointF &point)
\relates QPointF
\overload \overload
@ -726,16 +709,14 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn const QPointF operator+(const QPointF &point) \fn QPointF QPointF::operator+(const QPointF &point)
\relates QPointF
\since 5.0 \since 5.0
Returns \a point unmodified. Returns \a point unmodified.
*/ */
/*! /*!
\fn const QPointF operator-(const QPointF &point) \fn QPointF QPointF::operator-(const QPointF &point)
\relates QPointF
\overload \overload
Returns a QPointF object that is formed by changing the sign of Returns a QPointF object that is formed by changing the sign of
@ -745,8 +726,7 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn const QPointF operator/(const QPointF &point, qreal divisor) \fn QPointF QPointF::operator/(const QPointF &point, qreal divisor)
\relates QPointF
Returns the QPointF object formed by dividing both components of Returns the QPointF object formed by dividing both components of
the given \a point by the given \a divisor. the given \a point by the given \a divisor.
@ -773,15 +753,13 @@ size_t qHash(QPoint key, size_t seed) noexcept
*/ */
/*! /*!
\fn bool operator==(const QPointF &p1, const QPointF &p2) \fn bool QPointF::operator==(const QPointF &p1, const QPointF &p2)
\relates QPointF
Returns \c true if \a p1 is equal to \a p2; otherwise returns \c false. Returns \c true if \a p1 is equal to \a p2; otherwise returns \c false.
*/ */
/*! /*!
\fn bool operator!=(const QPointF &p1, const QPointF &p2); \fn bool QPointF::operator!=(const QPointF &p1, const QPointF &p2);
\relates QPointF
Returns \c true if \a p1 is not equal to \a p2; otherwise returns \c false. Returns \c true if \a p1 is not equal to \a p2; otherwise returns \c false.
*/ */

View File

@ -302,37 +302,32 @@ QSize QSize::scaled(const QSize &s, Qt::AspectRatioMode mode) const noexcept
*/ */
/*! /*!
\fn bool operator==(const QSize &s1, const QSize &s2) \fn bool QSize::operator==(const QSize &s1, const QSize &s2)
\relates QSize
Returns \c true if \a s1 and \a s2 are equal; otherwise returns \c false. Returns \c true if \a s1 and \a s2 are equal; otherwise returns \c false.
*/ */
/*! /*!
\fn bool operator!=(const QSize &s1, const QSize &s2) \fn bool QSize::operator!=(const QSize &s1, const QSize &s2)
\relates QSize
Returns \c true if \a s1 and \a s2 are different; otherwise returns \c false. Returns \c true if \a s1 and \a s2 are different; otherwise returns \c false.
*/ */
/*! /*!
\fn const QSize operator+(const QSize &s1, const QSize &s2) \fn QSize QSize::operator+(const QSize &s1, const QSize &s2)
\relates QSize
Returns the sum of \a s1 and \a s2; each component is added separately. Returns the sum of \a s1 and \a s2; each component is added separately.
*/ */
/*! /*!
\fn const QSize operator-(const QSize &s1, const QSize &s2) \fn QSize QSize::operator-(const QSize &s1, const QSize &s2)
\relates QSize
Returns \a s2 subtracted from \a s1; each component is subtracted Returns \a s2 subtracted from \a s1; each component is subtracted
separately. separately.
*/ */
/*! /*!
\fn const QSize operator*(const QSize &size, qreal factor) \fn QSize QSize::operator*(const QSize &size, qreal factor)
\relates QSize
Multiplies the given \a size by the given \a factor, and returns Multiplies the given \a size by the given \a factor, and returns
the result rounded to the nearest integer. the result rounded to the nearest integer.
@ -341,9 +336,8 @@ QSize QSize::scaled(const QSize &s, Qt::AspectRatioMode mode) const noexcept
*/ */
/*! /*!
\fn const QSize operator*(qreal factor, const QSize &size) \fn QSize QSize::operator*(qreal factor, const QSize &size)
\overload \overload
\relates QSize
Multiplies the given \a size by the given \a factor, and returns Multiplies the given \a size by the given \a factor, and returns
the result rounded to the nearest integer. the result rounded to the nearest integer.
@ -362,8 +356,7 @@ QSize QSize::scaled(const QSize &s, Qt::AspectRatioMode mode) const noexcept
*/ */
/*! /*!
\fn const QSize operator/(const QSize &size, qreal divisor) \fn QSize QSize::operator/(const QSize &size, qreal divisor)
\relates QSize
\overload \overload
Divides the given \a size by the given \a divisor, and returns the Divides the given \a size by the given \a divisor, and returns the
@ -748,40 +741,35 @@ QSizeF QSizeF::scaled(const QSizeF &s, Qt::AspectRatioMode mode) const noexcept
*/ */
/*! /*!
\fn bool operator==(const QSizeF &s1, const QSizeF &s2) \fn bool QSizeF::operator==(const QSizeF &s1, const QSizeF &s2)
\relates QSizeF
Returns \c true if \a s1 and \a s2 are equal; otherwise returns Returns \c true if \a s1 and \a s2 are equal; otherwise returns
false. false.
*/ */
/*! /*!
\fn bool operator!=(const QSizeF &s1, const QSizeF &s2) \fn bool QSizeF::operator!=(const QSizeF &s1, const QSizeF &s2)
\relates QSizeF
Returns \c true if \a s1 and \a s2 are different; otherwise returns \c false. Returns \c true if \a s1 and \a s2 are different; otherwise returns \c false.
*/ */
/*! /*!
\fn const QSizeF operator+(const QSizeF &s1, const QSizeF &s2) \fn QSizeF QSizeF::operator+(const QSizeF &s1, const QSizeF &s2)
\relates QSizeF
Returns the sum of \a s1 and \a s2; each component is added separately. Returns the sum of \a s1 and \a s2; each component is added separately.
*/ */
/*! /*!
\fn const QSizeF operator-(const QSizeF &s1, const QSizeF &s2) \fn QSizeF QSizeF::operator-(const QSizeF &s1, const QSizeF &s2)
\relates QSizeF
Returns \a s2 subtracted from \a s1; each component is subtracted Returns \a s2 subtracted from \a s1; each component is subtracted
separately. separately.
*/ */
/*! /*!
\fn const QSizeF operator*(const QSizeF &size, qreal factor) \fn QSizeF QSizeF::operator*(const QSizeF &size, qreal factor)
\overload \overload
\relates QSizeF
Multiplies the given \a size by the given \a factor and returns Multiplies the given \a size by the given \a factor and returns
the result. the result.
@ -790,10 +778,9 @@ QSizeF QSizeF::scaled(const QSizeF &s, Qt::AspectRatioMode mode) const noexcept
*/ */
/*! /*!
\fn const QSizeF operator*(qreal factor, const QSizeF &size) \fn QSizeF QSizeF::operator*(qreal factor, const QSizeF &size)
\overload \overload
\relates QSizeF
Multiplies the given \a size by the given \a factor and returns Multiplies the given \a size by the given \a factor and returns
the result. the result.
@ -811,9 +798,8 @@ QSizeF QSizeF::scaled(const QSizeF &s, Qt::AspectRatioMode mode) const noexcept
*/ */
/*! /*!
\fn const QSizeF operator/(const QSizeF &size, qreal divisor) \fn QSizeF QSizeF::operator/(const QSizeF &size, qreal divisor)
\relates QSizeF
\overload \overload
Divides the given \a size by the given \a divisor and returns the Divides the given \a size by the given \a divisor and returns the

View File

@ -123,9 +123,9 @@
*/ */
/*! /*!
\fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator!() const noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator!(QTaggedPointer<T, Tag> pointer) noexcept
Returns \c true if the pointer is \nullptr. Returns \c true if \a pointer is \nullptr.
*/ */
/*! /*!
@ -171,8 +171,7 @@
*/ */
/*! /*!
\fn template <typename T, typename Tag> inline bool operator==(QTaggedPointer lhs, QTaggedPointer rhs) noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator==(QTaggedPointer<T, Tag> lhs, QTaggedPointer<T, Tag> rhs) noexcept
\relates QTaggedPointer
Returns \c true if \a lhs is equal to \a rhs; otherwise returns \c false. Returns \c true if \a lhs is equal to \a rhs; otherwise returns \c false.
@ -180,8 +179,7 @@
*/ */
/*! /*!
\fn template <typename T, typename Tag> inline bool operator!=(QTaggedPointer lhs, QTaggedPointer rhs) noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator!=(QTaggedPointer<T, Tag> lhs, QTaggedPointer<T, Tag> rhs) noexcept
\relates QTaggedPointer
Returns \c true if \a lhs is not equal to \a rhs; otherwise returns \c false. Returns \c true if \a lhs is not equal to \a rhs; otherwise returns \c false.
@ -189,29 +187,25 @@
*/ */
/*! /*!
\fn template <typename T, typename Tag> inline bool operator==(QTaggedPointer lhs, std::nullptr_t) noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator==(QTaggedPointer<T, Tag> lhs, std::nullptr_t) noexcept
\relates QTaggedPointer
Returns \c true if \a lhs refers to \c nullptr. Returns \c true if \a lhs refers to \c nullptr.
*/ */
/*! /*!
\fn template <typename T, typename Tag> inline bool operator==(std::nullptr_t, QTaggedPointer rhs) noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator==(std::nullptr_t, QTaggedPointer<T, Tag> rhs) noexcept
\relates QTaggedPointer
Returns \c true if \a rhs refers to \c nullptr. Returns \c true if \a rhs refers to \c nullptr.
*/ */
/*! /*!
\fn template <typename T, typename Tag> inline bool operator!=(QTaggedPointerlhs, std::nullptr_t) noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator!=(QTaggedPointer<T, Tag> lhs, std::nullptr_t) noexcept
\relates QTaggedPointer
Returns \c true if \a lhs refers to a valid (i.e. non-null) pointer. Returns \c true if \a lhs refers to a valid (i.e. non-null) pointer.
*/ */
/*! /*!
\fn template <typename T, typename Tag> inline bool operator!=(std::nullptr_t, QTaggedPointer rhs) noexcept \fn template <typename T, typename Tag> bool QTaggedPointer<T, Tag>::operator!=(std::nullptr_t, QTaggedPointer<T, Tag> rhs) noexcept
\relates QTaggedPointer
Returns \c true if \a rhs refers to a valid (i.e. non-null) pointer. Returns \c true if \a rhs refers to a valid (i.e. non-null) pointer.
*/ */