QSqlQuery: Do not use deleted constructor in docs

QVariant(QMetaType::Type) is deleted since Qt 5 (sic!). Suggest usage of
the constructor taking a meta-type instead.

Change-Id: I50949dac9dfc35c80108debdeabc791afe0998b6
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
(cherry picked from commit 879d30394a41b7b7124fc8139e787a9bdbe0dfee)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Fabian Kosmale 2022-08-05 15:33:36 +02:00 committed by Qt Cherry-pick Bot
parent c1b836cb18
commit 84b0e89d67

View File

@ -1047,8 +1047,8 @@ bool QSqlQuery::exec()
To bind NULL values, a null QVariant of the relevant type has to be To bind NULL values, a null QVariant of the relevant type has to be
added to the bound QVariantList; for example, \c added to the bound QVariantList; for example, \c
{QVariant(QMetaType::QString)} should be used if you are using {QVariant(QMetaType::fromType<QString>())} should be used if you are
strings. using strings.
\note Every bound QVariantList must contain the same amount of \note Every bound QVariantList must contain the same amount of
variants. variants.