Skip to content
Permalink
Browse files

switch bindings to pyqt wrappers

  • Loading branch information
jef-n committed Mar 21, 2016
1 parent f413046 commit 271750fd534911e54f035b0e4f18dcb86c980504
@@ -23,11 +23,7 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

import sip

for api in ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]:
sip.setapi(api, 2)

from PyQt import QtCore
from qgis.core import QgsFeature, QgsGeometry


@@ -23,4 +23,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from PyQt import QtCore

from qgis._analysis import *
@@ -23,16 +23,11 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

try:
import sip
sip.setapi("QVariant", 2)
except:
pass
from PyQt.QtCore import QCoreApplication, QPyNullVariant, NULL

import inspect
import string
from qgis._core import *
from PyQt.QtCore import QCoreApplication, QPyNullVariant, NULL


def register_function(function, arg_count, group, usesgeometry=False, **kwargs):
@@ -23,4 +23,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from PyQt import QtCore

from qgis._gui import *
@@ -23,4 +23,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from PyQt import QtCore

from qgis._networkanalysis import *
@@ -22,9 +22,9 @@
import sys
import os

from PyQt4.Qsci import QsciLexerPython, QsciAPIs
from PyQt4.QtGui import QApplication
from PyQt4.QtCore import QObject
from PyQt.Qsci import QsciLexerPython, QsciAPIs
from PyQt.QtWidgets import QApplication
from PyQt.QtCore import QObject


class PrepareAPIs(QObject):
@@ -23,4 +23,6 @@
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from qgis._server import *
from PyQt import QtCore # NOQA

from qgis._server import * # NOQA
@@ -28,7 +28,7 @@
import glob
import traceback

from PyQt4.QtCore import QCoreApplication
from PyQt.QtCore import QCoreApplication
from qgis.core import QgsApplication, QgsMessageLog


@@ -28,8 +28,8 @@
"""

from PyQt4.QtCore import QCoreApplication, QLocale
from PyQt4.QtGui import QPushButton, QApplication
from PyQt.QtCore import QCoreApplication, QLocale
from PyQt.QtWidgets import QPushButton, QApplication
from qgis.core import QGis, QgsExpression, QgsMessageLog, qgsfunction, QgsMessageOutput
from qgis.gui import QgsMessageBar

0 comments on commit 271750f

Please sign in to comment.
You can’t perform that action at this time.