Changeset 8877:24d17d85997c in orange


Ignore:
Timestamp:
09/01/11 13:34:09 (3 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Convert:
391ecd5cbabeb93247ea7e12c90744366f61a05c
Message:

Disabled plot animation when performing zoom gesture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot.py

    r8876 r8877  
    11671167                continue 
    11681168            elif gesture.gestureType() == Qt.PinchGesture: 
     1169                old_animate_plot = self.animate_plot 
     1170                self.animate_plot = False 
    11691171                self.zoom(gesture.centerPoint(), gesture.scaleFactor()/self.current_gesture_scale ) 
    11701172                self.current_gesture_scale = gesture.scaleFactor() 
     1173                self.animate_plot = old_animate_plot 
    11711174            elif gesture.gestureType() == Qt.PanGesture: 
    11721175                self.pan(gesture.delta()) 
Note: See TracChangeset for help on using the changeset viewer.