diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/python/main.py | 4 | ||||
-rw-r--r-- | src/main/python/utils/fileWindow.py | 3 | ||||
-rw-r--r-- | src/main/python/utils/graphics.py | 3 | ||||
-rw-r--r-- | src/main/python/utils/toolbar.py | 3 |
4 files changed, 10 insertions, 3 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py index 7d72bae..ef52784 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -144,7 +144,9 @@ class appWindow(QMainWindow): @property def activeFiles(self): - return [i for i in self.mdi.subWindowList() if i.tabCount] + for i in self.mdi.subWindowList(): + if i.tabCount: + yield i @property def count(self): diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py index e549568..4bd4ceb 100644 --- a/src/main/python/utils/fileWindow.py +++ b/src/main/python/utils/fileWindow.py @@ -187,7 +187,8 @@ class fileWindow(QMdiSubWindow): @property def tabList(self): #returns a list of tabs in the given window - return [self.tabber.widget(i) for i in range(self.tabCount)] + for i in range(self.tabCount): + yield self.tabber.widget(i) @property def tabCount(self): diff --git a/src/main/python/utils/graphics.py b/src/main/python/utils/graphics.py index 6b2066f..dce664a 100644 --- a/src/main/python/utils/graphics.py +++ b/src/main/python/utils/graphics.py @@ -23,6 +23,9 @@ class customView(QGraphicsView): def dragMoveEvent(self, QDragMoveEvent): if QDragMoveEvent.mimeData().hasText(): QDragMoveEvent.acceptProposedAction() + + def dragLeaveEvent(self, QDragLeaveEvent): + QDragLeaveEvent.accept() def dropEvent(self, QDropEvent): if QDropEvent.mimeData().hasText(): diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py index 93eb653..6f276df 100644 --- a/src/main/python/utils/toolbar.py +++ b/src/main/python/utils/toolbar.py @@ -89,7 +89,8 @@ class toolbar(QDockWidget): @property def toolbarItemList(self): - return self.toolbarButtonDict.keys() + for i in self.toolbarButtonDict.keys(): + yield i class toolbarButton(QToolButton): |