Skip to content

Commit

Permalink
pro2cmake: Fix singleton declaration
Browse files Browse the repository at this point in the history
The singleton modifier must be written without square brackets.

Task-number: QTBUG-87684
Change-Id: I924bbf97789edd7f2b4f2b9bbca2cb99841d2906
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
jobor committed Oct 19, 2020
1 parent 748b3b9 commit b9bdea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/cmake/pro2cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def handle_line(self, line: str):
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])
Expand Down

0 comments on commit b9bdea3

Please sign in to comment.