mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
replace some PyQt5 to qgis.PyQt
This commit is contained in:
parent
ddca636ec7
commit
2076ca4fe0
@ -24,7 +24,7 @@
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# avoid PendingDeprecationWarning from PyQt4.uic
|
||||
# avoid PendingDeprecationWarning from PyQt.uic
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
|
@ -36,7 +36,7 @@ from qgis.core import (
|
||||
QgsProcessingParameterType,
|
||||
NULL)
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
|
||||
from processing.algs.qgis.QgisAlgorithm import QgisFeatureBasedAlgorithm
|
||||
|
||||
|
@ -62,7 +62,7 @@ from qgis.core import (QgsRasterLayer,
|
||||
QgsProcessingParameterFeatureSource,
|
||||
QgsProcessingParameterNumber)
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
|
||||
PARAMETER_NUMBER = 'number'
|
||||
PARAMETER_DISTANCE = 'distance'
|
||||
|
@ -11,7 +11,7 @@
|
||||
***************************************************************************
|
||||
"""
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
from qgis.core import (QgsProcessing,
|
||||
QgsFeatureSink,
|
||||
QgsProcessingException,
|
||||
|
Loading…
x
Reference in New Issue
Block a user