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/annotationitem.py

    r11161 r11172  
    99 
    1010from PyQt4.QtCore import ( 
    11     Qt, QSizeF, QRectF, QLineF, QEvent 
     11    Qt, QSizeF, QRectF, QLineF, QEvent, qVersion 
    1212) 
    1313 
     
    2424    def __init__(self, parent=None, **kwargs): 
    2525        QGraphicsWidget.__init__(self, parent, **kwargs) 
     26 
     27    if qVersion() < "4.7": 
     28        geometryChanged = Signal() 
     29 
     30        def setGeometry(self, rect): 
     31            QGraphicsWidget.setGeometry(self, rect) 
     32            self.geometryChanged.emit() 
    2633 
    2734 
Note: See TracChangeset for help on using the changeset viewer.