AssistantEric/APIsManager.py

changeset 173
ced7c270bf6b
parent 172
c9e64334670c
child 177
25cb41783971
--- a/AssistantEric/APIsManager.py	Wed Dec 30 11:02:00 2020 +0100
+++ b/AssistantEric/APIsManager.py	Sat Mar 06 15:54:30 2021 +0100
@@ -167,7 +167,8 @@
             query.bindValue(":file", apiFile)
             query.exec()
             if query.next() and query.isValid():    # __IGNORE_WARNING_M513__
-                loadTime = QDateTime.fromString(query.value(0), Qt.ISODate)
+                loadTime = QDateTime.fromString(
+                    query.value(0), Qt.DateFormat.ISODate)
             else:
                 loadTime = QDateTime(1970, 1, 1, 0, 0)
             query.finish()
@@ -1100,7 +1101,7 @@
                                      self._apiDbName(), projectPath,
                                      projectType=projectType)
         self.__worker.processing.connect(
-            self.__processingStatus, Qt.QueuedConnection)
+            self.__processingStatus, Qt.ConnectionType.QueuedConnection)
         self.__worker.start()
     
     def __processQueue(self):
@@ -1124,7 +1125,7 @@
                                          self._apiDbName(), projectPath,
                                          projectType=projectType, refresh=True)
             self.__worker.processing.connect(
-                self.__processingStatus, Qt.QueuedConnection)
+                self.__processingStatus, Qt.ConnectionType.QueuedConnection)
             self.__worker.start()
     
     def getLexer(self):

eric ide

mercurial