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): |