diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-06-16 19:11:46 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-06-17 16:40:45 +0200 |
commit | 999431f0186a4d55322032c52a37e4ef1b1d6038 (patch) | |
tree | 27d4b4e4c75297e7758f61a4272fbcea5e43e499 /src/qmlmodels | |
parent | 7a095bf6f7224e07fa1a28ab3021eb968019677f (diff) |
QVariant::setValue: do not force the template parameters
Change-Id: I198bfd703efe7ad675e4076d1976f2414816dec5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlmodels')
-rw-r--r-- | src/qmlmodels/qqmllistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlmodels/qqmllistmodel.cpp b/src/qmlmodels/qqmllistmodel.cpp index 0d45d03fa6..d51b9c1c1e 100644 --- a/src/qmlmodels/qqmllistmodel.cpp +++ b/src/qmlmodels/qqmllistmodel.cpp @@ -2793,7 +2793,7 @@ bool QQmlListModelParser::applyProperty( v4->catchException(); else QJSValuePrivate::setValue(&v, result->asReturnedValue()); - value.setValue<QJSValue>(v); + value.setValue(v); } else { QByteArray script = scriptStr.toUtf8(); bool ok; |