diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-08-30 10:35:00 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-09-09 08:07:20 +0200 |
commit | e96e929f80f1f495f5f74a87f8e254b4c1cbbb5f (patch) | |
tree | cb6e011fa6b643a9b647772e84625117e8739e24 /tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp | |
parent | eac67c26f2fc744873d702885ddc85996f6338a7 (diff) |
QQmlSA::ScriptBindingKind: Turn into scoped enumeration
and remove the Script_ prefix from its entries. This is more aligned
with Qt's namings conventions.
Change-Id: Ie97c2ce204b5532ab6bd6b136145f2a537175fbb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit d12d7a901f856311fc532a6f728b6e96e539d6e5)
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp')
-rw-r--r-- | tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp b/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp index 8a0a486b71..cd077aec92 100644 --- a/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp +++ b/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp @@ -720,12 +720,12 @@ void tst_qqmljsscope::resolvedNonUniqueScopes() auto onCompletedBinding = value(componentBindings, u"onCompleted"_s); QVERIFY(onCompletedBinding.isValid()); QCOMPARE(onCompletedBinding.bindingType(), QQmlSA::BindingType::Script); - QCOMPARE(onCompletedBinding.scriptKind(), QQmlSA::ScriptBindingKind::Script_SignalHandler); + QCOMPARE(onCompletedBinding.scriptKind(), QQmlSA::ScriptBindingKind::SignalHandler); auto onDestructionBinding = value(componentBindings, u"onDestruction"_s); QVERIFY(onDestructionBinding.isValid()); QCOMPARE(onDestructionBinding.bindingType(), QQmlSA::BindingType::Script); QCOMPARE(onDestructionBinding.scriptKind(), - QQmlSA::ScriptBindingKind::Script_SignalHandler); + QQmlSA::ScriptBindingKind::SignalHandler); } { @@ -738,7 +738,7 @@ void tst_qqmljsscope::resolvedNonUniqueScopes() auto onXChangedBinding = value(pBindings, u"onXChanged"_s); QVERIFY(onXChangedBinding.isValid()); QCOMPARE(onXChangedBinding.bindingType(), QQmlSA::BindingType::Script); - QCOMPARE(onXChangedBinding.scriptKind(), QQmlSA::ScriptBindingKind::Script_SignalHandler); + QCOMPARE(onXChangedBinding.scriptKind(), QQmlSA::ScriptBindingKind::SignalHandler); } } |