summaryrefslogtreecommitdiff
path: root/user/grantlee/enum-comparators.patch
blob: 94ee57e66357a5a3e6d642b4db96ac73a965986c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Upstream-URL: https://github.com/steveire/grantlee/issues/89

diff --git a/templates/tests/testbuiltins.cpp b/templates/tests/testbuiltins.cpp
index fe7e4ed..82a065d 100644
--- a/templates/tests/testbuiltins.cpp
+++ b/templates/tests/testbuiltins.cpp
@@ -298,6 +298,7 @@ void TestBuiltinSyntax::testObjects()
   Q_UNUSED(s3);
 
   QMetaType{qMetaTypeId<MetaEnumVariable>()}.create(nullptr);
+  QMetaType::registerComparators<MetaEnumVariable>();
 }
 
 void TestBuiltinSyntax::testTruthiness_data()