Changeset 8194:d027211be4fa in orange


Ignore:
Timestamp:
08/17/11 13:44:16 (3 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Convert:
b5c5d76d3015699c588d8f5dc017f10a7df13c25
Message:

Replaced another occurrence of zoom_transform with _zoom_transform.

File:
1 edited

Legend:

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

    r8191 r8194  
    11191119                text = self.buildTooltip(text) 
    11201120            if text and x is not None and y is not None: 
    1121                 tp = self.mapFromScene(QPointF(x,y) * self.map_transform * self.zoom_transform()) 
     1121                tp = self.mapFromScene(QPointF(x,y) * self.map_transform * self._zoom_transform) 
    11221122                self.showTip(tp.x(), tp.y(), text) 
    11231123            else: 
     
    11411141            rect = self._current_rs_item.rect() 
    11421142            if a == ZOOMING: 
    1143                 self.zoom_to_rect(self.zoom_transform.inverted()[0].mapRect(rect)) 
     1143                self.zoom_to_rect(self._zoom_transform.inverted()[0].mapRect(rect)) 
    11441144            else: 
    11451145                self.add_selection(rect) 
     
    15611561         
    15621562    def zoom(self, point, scale): 
    1563         t, ok = self.zoom_transform().inverted() 
     1563        t, ok = self._zoom_transform.inverted() 
    15641564        point = point * t 
    15651565        r = QRectF(self.zoom_rect) 
Note: See TracChangeset for help on using the changeset viewer.