summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-10-19 08:41:35 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-10-19 16:38:48 +0200
commitb9bdea3b07b6fcf7a81c923db85d1e191979547d (patch)
tree9a0c3f77070514aed91e6c1593e545b0c6fa122e /util
parent748b3b9c8971e359ce785c92d52c1de98feaef21 (diff)
pro2cmake: Fix singleton declaration
The singleton modifier must be written without square brackets. Task-number: QTBUG-87684 Change-Id: I924bbf97789edd7f2b4f2b9bbca2cb99841d2906 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index e1a1ed8e11..b2b7215975 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -696,7 +696,7 @@ class QmlDir:
raise RuntimeError("Unexpected QmlDir file line entry")
if entries[0] == "module":
self.module = entries[1]
- elif entries[0] == "[singleton]":
+ elif entries[0] == "singleton":
self.handle_file_singleton(entries[1], entries[2], entries[3])
elif entries[0] == "internal":
self.handle_file_internal(entries[1], entries[2])