PySide2: qApp -> QApplication

This commit is contained in:
looooo
2018-04-12 17:03:30 +02:00
committed by wmayer
parent ed201c9513
commit cdcb3bec4a
33 changed files with 63 additions and 63 deletions

View File

@@ -110,7 +110,7 @@ class TaskPanel:
return False
def getMainWindow(self):
toplevel = QtGui.qApp.topLevelWidgets()
toplevel = QtGui.QApplication.topLevelWidgets()
for i in toplevel:
if i.metaObject().className() == "Gui::MainWindow":
return i