diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2026-09-30 15:32:51 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2026-09-30 16:03:58 +0000 |
| commit | 9a0933e326bf51b0b4633f8e8f03c1ee95672460 (patch) | |
| tree | 1f1c44414c4cff89b5244a04450fdc2695a7b6a1 | |
| parent | 2317ac46e2e199b0cf6338768bc7967c4b273044 (diff) | |
Fix build of animation benchmark
Change-Id: I2cb13dd66cf3f3c82141eb5b18094edce9cacb11
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
| -rw-r--r-- | tests/benchmarks/qml/animation/tst_animation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/benchmarks/qml/animation/tst_animation.cpp b/tests/benchmarks/qml/animation/tst_animation.cpp index 1685baf98f..53b87c4ae5 100644 --- a/tests/benchmarks/qml/animation/tst_animation.cpp +++ b/tests/benchmarks/qml/animation/tst_animation.cpp @@ -87,7 +87,8 @@ void tst_animation::animationelements_data() { QTest::addColumn<QString>("type"); - const QSet<QString> types = QQmlMetaType::qmlTypeNames().toSet(); + const QList<QString> typeNames = QQmlMetaType::qmlTypeNames(); + const QSet<QString> types(typeNames.begin(), typeNames.end()); for (const QString &type : types) { if (type.contains(QLatin1String("Animation"))) QTest::newRow(type.toLatin1()) << type; @@ -100,7 +101,7 @@ void tst_animation::animationelements_data() void tst_animation::animationelements() { QFETCH(QString, type); - QQmlType t = QQmlMetaType::qmlType(type, 2, 0); + QQmlType t = QQmlMetaType::qmlType(type, QTypeRevision::fromVersion(2, 0)); if (!t.isValid() || !t.isCreatable()) QSKIP("Non-creatable type"); |
