Skip to content

Commit 2076ca4

Browse files
committed
replace some PyQt5 to qgis.PyQt
1 parent ddca636 commit 2076ca4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/plugins/MetaSearch/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#
2525
###############################################################################
2626

27-
# avoid PendingDeprecationWarning from PyQt4.uic
27+
# avoid PendingDeprecationWarning from PyQt.uic
2828
import warnings
2929
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
3030
warnings.filterwarnings("ignore", category=DeprecationWarning)

python/plugins/processing/algs/qgis/FieldsMapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
QgsProcessingParameterType,
3737
NULL)
3838

39-
from PyQt5.QtCore import QCoreApplication
39+
from qgis.PyQt.QtCore import QCoreApplication
4040

4141
from processing.algs.qgis.QgisAlgorithm import QgisFeatureBasedAlgorithm
4242

python/plugins/processing/core/parameters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
QgsProcessingParameterFeatureSource,
6363
QgsProcessingParameterNumber)
6464

65-
from PyQt5.QtCore import QCoreApplication
65+
from qgis.PyQt.QtCore import QCoreApplication
6666

6767
PARAMETER_NUMBER = 'number'
6868
PARAMETER_DISTANCE = 'distance'

python/plugins/processing/script/ScriptTemplate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
***************************************************************************
1212
"""
1313

14-
from PyQt5.QtCore import QCoreApplication
14+
from qgis.PyQt.QtCore import QCoreApplication
1515
from qgis.core import (QgsProcessing,
1616
QgsFeatureSink,
1717
QgsProcessingException,

0 commit comments

Comments
 (0)