Plugins/ViewManagerPlugins/Tabview/Tabview.py

branch
5_5_x
changeset 3894
5cbd92ad2dc0
parent 3621
15f23ed3f216
equal deleted inserted replaced
3892:729a1dcd7e91 3894:5cbd92ad2dc0
1182 @param event the event that occurred (QEvent) 1182 @param event the event that occurred (QEvent)
1183 @return always False 1183 @return always False
1184 """ 1184 """
1185 if event.type() == QEvent.MouseButtonPress and \ 1185 if event.type() == QEvent.MouseButtonPress and \
1186 not event.button() == Qt.RightButton: 1186 not event.button() == Qt.RightButton:
1187 switched = True
1187 self.currentTabWidget.showIndicator(False) 1188 self.currentTabWidget.showIndicator(False)
1188 if isinstance(watched, E5TabWidget): 1189 if isinstance(watched, E5TabWidget):
1189 switched = watched is not self.currentTabWidget 1190 switched = watched is not self.currentTabWidget
1190 self.currentTabWidget = watched 1191 self.currentTabWidget = watched
1191 elif isinstance(watched, QTabBar): 1192 elif isinstance(watched, QTabBar):

eric ide

mercurial