Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
5_5_x
changeset 3894
5cbd92ad2dc0
parent 3621
15f23ed3f216
equal deleted inserted replaced
3892:729a1dcd7e91 3894:5cbd92ad2dc0
776 @param event the event that occurred 776 @param event the event that occurred
777 @return flag indicating, if we handled the event 777 @return flag indicating, if we handled the event
778 """ 778 """
779 if event.type() == QEvent.MouseButtonPress and \ 779 if event.type() == QEvent.MouseButtonPress and \
780 not event.button() == Qt.RightButton: 780 not event.button() == Qt.RightButton:
781 switched = True
781 if isinstance(watched, QStackedWidget): 782 if isinstance(watched, QStackedWidget):
782 switched = watched is not self.currentStack 783 switched = watched is not self.currentStack
783 self.currentStack = watched 784 self.currentStack = watched
784 elif isinstance(watched, QScintilla.Editor.Editor): 785 elif isinstance(watched, QScintilla.Editor.Editor):
785 for stack in self.stacks: 786 for stack in self.stacks:

eric ide

mercurial