diff options
Diffstat (limited to 'src/qmlmodels/qqmllistaccessor.cpp')
-rw-r--r-- | src/qmlmodels/qqmllistaccessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlmodels/qqmllistaccessor.cpp b/src/qmlmodels/qqmllistaccessor.cpp index 69427df184..21481b8067 100644 --- a/src/qmlmodels/qqmllistaccessor.cpp +++ b/src/qmlmodels/qqmllistaccessor.cpp @@ -82,7 +82,7 @@ void QQmlListAccessor::setList(const QVariant &v, QQmlEngine *engine) m_type = VariantList; } else if (d.userType() == qMetaTypeId<QList<QObject *>>()) { m_type = ObjectList; - } else if (d.canConvert(QMetaType::Int)) { + } else if (d.canConvert(QMetaType(QMetaType::Int))) { // Here we have to check for an upper limit, because down the line code might (well, will) // allocate memory depending on the number of elements. The upper limit cannot be INT_MAX: // QVector<QPointer<QQuickItem>> something; |