104 uid = self.attribute("uid", "") |
104 uid = self.attribute("uid", "") |
105 if uid: |
105 if uid: |
106 task["uid"] = uid |
106 task["uid"] = uid |
107 else: |
107 else: |
108 # upgrade from pre 6.0 format |
108 # upgrade from pre 6.0 format |
109 from PyQt5.QtCore import QUuid |
109 from PyQt6.QtCore import QUuid |
110 task["uid"] = QUuid.createUuid().toString() |
110 task["uid"] = QUuid.createUuid().toString() |
111 parentUid = self.attribute("parent_uid", "") |
111 parentUid = self.attribute("parent_uid", "") |
112 expanded = self.toBool(self.attribute("expanded", "True")) |
112 expanded = self.toBool(self.attribute("expanded", "True")) |
113 |
113 |
114 while not self.atEnd(): |
114 while not self.atEnd(): |