116 ): |
116 ): |
117 QTimer.singleShot( |
117 QTimer.singleShot( |
118 0, lambda: self.__showTabPreview(tabIndex)) |
118 0, lambda: self.__showTabPreview(tabIndex)) |
119 |
119 |
120 # If current tab or not found then hide previous tab preview |
120 # If current tab or not found then hide previous tab preview |
121 if ( |
121 if tabIndex in (self.currentIndex(), -1): |
122 tabIndex == self.currentIndex() or |
|
123 tabIndex == -1 |
|
124 ): |
|
125 self.__hidePreview() |
122 self.__hidePreview() |
126 |
123 |
127 def leaveEvent(self, evt): |
124 def leaveEvent(self, evt): |
128 """ |
125 """ |
129 Protected method to handle leave events. |
126 Protected method to handle leave events. |