Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pyqtwrapper: set sip api to 2 for PyQt.QtCore for Qt4
(followup fb3fcfa)
  • Loading branch information
jef-n committed Mar 15, 2016
1 parent 567a323 commit 01c2cfb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/PyQt/PyQt4/QtCore.py
Expand Up @@ -23,6 +23,16 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

import sip

try:
apis = ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]
for api in apis:
sip.setapi(api, 2)
except ValueError:
# API has already been set so we can't set it again.
pass

from PyQt4.QtCore import *
from PyQt4.QtGui import QItemSelectionModel, QSortFilterProxyModel

Expand Down

0 comments on commit 01c2cfb

Please sign in to comment.