cmake scripts: fix conversion of qmldir files
I broke the depends in 3a103b3608
wrongly
assuming it was dead code. Bring it back and actually fix the type to be
a list of tuples.
Change-Id: I96f04843ff2e2293969b5ba0efe02fb51dc88404
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
af7b0534c6
commit
03f365f93e
@ -438,7 +438,7 @@ class QmlDir:
|
||||
self.imports: List[str] = []
|
||||
self.type_names: Dict[str, QmlDirFileInfo] = {}
|
||||
self.type_infos: List[str] = []
|
||||
self.depends: List[str] = []
|
||||
self.depends: List[Tuple[str, str]] = []
|
||||
self.designer_supported = False
|
||||
|
||||
def __str__(self) -> str:
|
||||
@ -518,6 +518,8 @@ class QmlDir:
|
||||
self.classname = entries[1]
|
||||
elif entries[0] == "typeinfo":
|
||||
self.type_infos.append(entries[1])
|
||||
elif entries[0] == "depends":
|
||||
self.depends.append((entries[1], entries[2]))
|
||||
elif entries[0] == "designersupported":
|
||||
self.designer_supported = True
|
||||
elif entries[0] == "import":
|
||||
|
Loading…
Reference in New Issue
Block a user