Ignore:
Timestamp:
11/09/12 14:49:58 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

More code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/gui/dock.py

    r11100 r11179  
    6868                                   QSizePolicy.Expanding) 
    6969 
    70         self.__stack.transitionStarted.connect(self._onTransitionStarted) 
    71         self.__stack.transitionFinished.connect(self._onTransitionFinished) 
     70        self.__stack.transitionStarted.connect(self.__onTransitionStarted) 
     71        self.__stack.transitionFinished.connect(self.__onTransitionFinished) 
    7272 
    7373        self.__stack.installEventFilter(self) 
     
    170170    def eventFilter(self, obj, event): 
    171171        if obj is self.__closeButton: 
    172             type = event.type() 
    173             if type == QEvent.MouseButtonPress: 
     172            etype = event.type() 
     173            if etype == QEvent.MouseButtonPress: 
    174174                self.setExpanded(not self.__expanded) 
    175175                return True 
    176             elif type == QEvent.MouseButtonDblClick or \ 
    177                     type == QEvent.MouseButtonRelease: 
     176            elif etype == QEvent.MouseButtonDblClick or \ 
     177                    etype == QEvent.MouseButtonRelease: 
    178178                return True 
    179179            # TODO: which other events can trigger the button (is the button 
     
    181181 
    182182        if obj is self.__stack: 
    183             type = event.type() 
    184             if type == QEvent.Resize: 
     183            etype = event.type() 
     184            if etype == QEvent.Resize: 
    185185                # If the stack resizes 
    186186                obj.resizeEvent(event) 
     
    206206        self.__fixIcon() 
    207207 
    208     def _onTransitionStarted(self): 
     208    def __onTransitionStarted(self): 
    209209        self.__stack.installEventFilter(self) 
    210210 
    211     def _onTransitionFinished(self): 
     211    def __onTransitionFinished(self): 
    212212        self.__stack.removeEventFilter(self) 
    213213        size = self.__stack.sizeHint() 
Note: See TracChangeset for help on using the changeset viewer.