1. Marko Toplak
  2. orange

Commits

Aleš Erjavec  committed 6b6c71f Draft

Small fixes for PyQt compatibility

  • Participants
  • Parent commits 4843f2e
  • Branches default

Comments (0)

Files changed (2)

File Orange/OrangeCanvas/utils/qtcompat.py

View file
     """
     Get the api version for a name.
     """
-    if sip.SIP_VERSION < 0x40900:
+    if sip.SIP_VERSION > 0x40900:
         return sip.getapi(name)
     elif name in _API_NAMES:
         return 1

File Orange/OrangeCanvas/utils/settings.py

View file
 from PyQt4.QtCore import QObject, QString, QChar, QEvent, QCoreApplication
 
 from PyQt4.QtCore import pyqtSignal as Signal
-from PyQt4.QtCore import pyqtWrapperType
+
+pyqtWrapperType = type(QObject)
 
 from . import toPyObject