mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
pyqtwrapper: set sip api to 2 for PyQt.QtCore for Qt4
(followup fb3fcfa3)
This commit is contained in:
parent
567a323c08
commit
01c2cfbe87
@ -23,6 +23,16 @@ __copyright__ = '(C) 2015, Matthias Kuhn'
|
||||
# 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user