Doc: Fix QDoc warnings for overloads

Change-Id: I9a77b6ea0026748c7f97f73b327118f7a9212d52
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Paul Wicking 2024-02-13 10:21:11 +01:00
parent f157422c58
commit 99b9eb7177
8 changed files with 13 additions and 4 deletions

View File

@ -240,6 +240,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Container> qsizetype QIterator<Container>::operator-(const QIterator<Container> &j) const
\overload
Returns the distance between the two iterators.
@ -377,6 +378,8 @@ QT_BEGIN_NAMESPACE
/*!
\fn template <class Container> qsizetype QConstIterator<Container>::operator-(const QConstIterator<Container> &j) const
\overload
Returns the distance between the two iterators.
\sa operator+(), operator-=(), QIterable::canReverseIterate()

View File

@ -1282,6 +1282,7 @@ QByteArray::iterator QByteArray::erase(QByteArray::const_iterator first, QByteAr
/*!
\fn QByteArray::iterator QByteArray::erase(QByteArray::const_iterator it)
\overload
\since 6.5
Removes the character denoted by \c it from the byte array.

View File

@ -8084,6 +8084,7 @@ QStringList QString::split(const QRegularExpression &re, Qt::SplitBehavior behav
}
/*!
\overload
\since 6.0
Splits the string into substring views wherever the regular expression \a re
@ -9179,6 +9180,7 @@ QString::iterator QString::erase(QString::const_iterator first, QString::const_i
/*!
\fn QString::iterator QString::erase(QString::const_iterator it)
\overload
\since 6.5
Removes the character denoted by \c it from the string.

View File

@ -5563,7 +5563,6 @@ QDateTime QDateTime::fromSecsSinceEpoch(qint64 secs, Qt::TimeSpec spec, int offs
/*!
\since 5.2
\overload
Returns a datetime representing a moment the given number \a msecs of
milliseconds after the start, in UTC, of the year 1970, described as
@ -5595,7 +5594,6 @@ QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs)
/*!
\since 5.8
\overload
Returns a datetime representing a moment the given number \a secs of seconds
after the start, in UTC, of the year 1970, described as specified by \a

View File

@ -1655,8 +1655,8 @@ QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent()
/*!
\fn QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QAccessibleInterface *iface, int position, const QString &text)
Constructs a new QAccessibleTextInsertEvent event for \a iface. The text has been inserted at
\a position.
Constructs a new QAccessibleTextInsertEvent event for \a iface. The \a text has been inserted
at \a position.
*/
/*!

View File

@ -481,6 +481,8 @@ void QPaintEngine::drawEllipse(const QRectF &rect)
}
/*!
\overload
The default implementation of this function calls the floating
point version of this function
*/

View File

@ -8808,6 +8808,8 @@ void QRhiResourceUpdateBatch::uploadStaticBuffer(QRhiBuffer *buf, quint32 offset
}
/*!
\overload
Enqueues updating the entire QRhiBuffer \a buf created with the type
QRhiBuffer::Immutable or QRhiBuffer::Static.
*/

View File

@ -1127,6 +1127,7 @@ bool QSqlDatabase::isDriverAvailable(const QString& name)
}
/*! \fn QSqlDatabase QSqlDatabase::addDatabase(QSqlDriver* driver, const QString& connectionName)
\overload
This overload is useful when you want to create a database
connection with a \l{QSqlDriver} {driver} you instantiated