summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2024-02-13 10:21:11 +0100
committerPaul Wicking <paul.wicking@qt.io>2024-02-14 21:47:28 +0100
commit99b9eb7177beefc70ea53579a3f88825751ca6d2 (patch)
tree7570df7300a127a773b0f5ad623d91345dbcdd92 /src
parentDoc: Resolve qdoc link warnings (diff)
downloadqtbase-99b9eb7177beefc70ea53579a3f88825751ca6d2.tar.xz
qtbase-99b9eb7177beefc70ea53579a3f88825751ca6d2.zip
Doc: Fix QDoc warnings for overloads
Change-Id: I9a77b6ea0026748c7f97f73b327118f7a9212d52 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qiterable.cpp3
-rw-r--r--src/corelib/text/qbytearray.cpp1
-rw-r--r--src/corelib/text/qstring.cpp2
-rw-r--r--src/corelib/time/qdatetime.cpp2
-rw-r--r--src/gui/accessible/qaccessible.cpp4
-rw-r--r--src/gui/painting/qpaintengine.cpp2
-rw-r--r--src/gui/rhi/qrhi.cpp2
-rw-r--r--src/sql/kernel/qsqldatabase.cpp1
8 files changed, 13 insertions, 4 deletions
diff --git a/src/corelib/kernel/qiterable.cpp b/src/corelib/kernel/qiterable.cpp
index 80715b2347..a8c93fbc1c 100644
--- a/src/corelib/kernel/qiterable.cpp
+++ b/src/corelib/kernel/qiterable.cpp
@@ -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()
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp
index 738d4afb40..1eb5c5b2d2 100644
--- a/src/corelib/text/qbytearray.cpp
+++ b/src/corelib/text/qbytearray.cpp
@@ -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.
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index 1721b9064e..95dfd09abd 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -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.
diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp
index fc498d9298..bfe74df110 100644
--- a/src/corelib/time/qdatetime.cpp
+++ b/src/corelib/time/qdatetime.cpp
@@ -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
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp
index df08963876..ea8ab097d1 100644
--- a/src/gui/accessible/qaccessible.cpp
+++ b/src/gui/accessible/qaccessible.cpp
@@ -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.
*/
/*!
diff --git a/src/gui/painting/qpaintengine.cpp b/src/gui/painting/qpaintengine.cpp
index 839be3bd41..aface3744d 100644
--- a/src/gui/painting/qpaintengine.cpp
+++ b/src/gui/painting/qpaintengine.cpp
@@ -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
*/
diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp
index 60f4060827..60efc92527 100644
--- a/src/gui/rhi/qrhi.cpp
+++ b/src/gui/rhi/qrhi.cpp
@@ -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.
*/
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp
index c506147674..988eee25b3 100644
--- a/src/sql/kernel/qsqldatabase.cpp
+++ b/src/sql/kernel/qsqldatabase.cpp
@@ -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