Ignore:
Timestamp:
11/06/12 13:48:32 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Compatibility fixes for PyQt4 < 4.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/items/controlpoints.py

    r11161 r11172  
    88 
    99from .graphicspathobject import GraphicsPathObject 
     10from .utils import toGraphicsObjectIfPossible 
    1011 
    1112log = logging.getLogger(__name__) 
     
    210211    def sceneEventFilter(self, obj, event): 
    211212        try: 
     213            obj = toGraphicsObjectIfPossible(obj) 
    212214            if isinstance(obj, ControlPoint): 
    213215                etype = event.type() 
     
    366368    def sceneEventFilter(self, obj, event): 
    367369        try: 
     370            obj = toGraphicsObjectIfPossible(obj) 
    368371            if isinstance(obj, ControlPoint): 
    369372                etype = event.type() 
Note: See TracChangeset for help on using the changeset viewer.