Changeset 11144:5183fcc7e13e in orange


Ignore:
Timestamp:
10/19/12 16:58:31 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixes for compatibility with Qt 4.6.

Location:
Orange/OrangeCanvas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/schemeinfo.py

    r11118 r11144  
    1111from PyQt4.QtCore import Qt 
    1212 
     13from ..gui.lineedit import LineEdit 
    1314from ..gui.utils import StyledWidget_paintEvent, StyledWidget 
    1415from .. import config 
     
    2829        layout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow) 
    2930 
    30         self.name_edit = QLineEdit(self) 
     31        self.name_edit = LineEdit(self) 
    3132        self.name_edit.setPlaceholderText(self.tr("untitled")) 
    3233        self.name_edit.setSizePolicy(QSizePolicy.Expanding, 
  • Orange/OrangeCanvas/canvas/editlinksdialog.py

    r11109 r11144  
    1717) 
    1818 
    19 from PyQt4.QtCore import Qt, QObject, QSize, QSizeF, QPointF, QRectF 
     19from PyQt4.QtCore import ( 
     20    Qt, QObject, QSize, QSizeF, QPointF, QRectF, qVersion 
     21) 
     22 
     23from PyQt4.QtCore import pyqtSignal as Signal 
    2024 
    2125from ..scheme import SchemeNode, SchemeLink, compatible_channels 
     
    410414        self.sourceNodeTitle = left_title 
    411415        self.sinkNodeTitle = right_title 
     416 
     417    if qVersion() < "4.7": 
     418        geometryChanged = Signal() 
     419 
     420        def setGeometry(self, rect): 
     421            QGraphicsWidget.setGeometry(self, rect) 
     422            self.geometryChanged.emit() 
    412423 
    413424 
     
    655666 
    656667    """ 
     668 
    657669    def __init__(self, parent=None, textItem=None): 
    658670        QGraphicsLayoutItem.__init__(self, parent) 
Note: See TracChangeset for help on using the changeset viewer.