From a97dbbd1a023fb4a0b7a518fad0ad9edbf1f23f4 Mon Sep 17 00:00:00 2001 From: Sze Howe Koh Date: Tue, 10 Jan 2023 13:58:28 +0800 Subject: Doc: Fix usages of deleted QVariant constructors Finish the job started at 879d30394a41b7b7124fc8139e787a9bdbe0dfee Pick-to: 6.5 6.4 6.2 Change-Id: I217a4830ac8e17d5d1f8900e2d3134fbabf8b9a2 Reviewed-by: Fabian Kosmale --- src/sql/kernel/qsqlquery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sql/kernel/qsqlquery.cpp') diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index 14a3dc41302..805ce81f77b 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -1087,7 +1087,7 @@ bool QSqlQuery::execBatch(BatchExecutionMode mode) the result into. To bind a NULL value, use a null QVariant; for example, use - \c {QVariant(QMetaType::QString)} if you are binding a string. + \c {QVariant(QMetaType::fromType())} if you are binding a string. \sa addBindValue(), prepare(), exec(), boundValue(), boundValues() */ @@ -1117,7 +1117,7 @@ void QSqlQuery::bindValue(int pos, const QVariant& val, QSql::ParamType paramTyp overwritten with data from the database after the exec() call. To bind a NULL value, use a null QVariant; for example, use \c - {QVariant(QMetaType::QString)} if you are binding a string. + {QVariant(QMetaType::fromType())} if you are binding a string. \sa bindValue(), prepare(), exec(), boundValue(), boundValues() */ -- cgit v1.2.3