Skip to content

Commit cd0140d

Browse files
committed
Tiny Qt6 compatibility fixes
1 parent 9320bb8 commit cd0140d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

libqfieldsync/offliners.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import List, NamedTuple, NewType, Optional
66

77
from osgeo import gdal, ogr, osr
8-
from PyQt5.QtCore import QFileInfo, QVariant
98
from qgis.core import (
109
Qgis,
1110
QgsCoordinateReferenceSystem,
@@ -21,7 +20,7 @@
2120
QgsVectorLayer,
2221
edit,
2322
)
24-
from qgis.PyQt.QtCore import QObject, pyqtSignal
23+
from qgis.PyQt.QtCore import QFileInfo, QObject, QVariant, pyqtSignal
2524

2625
from .utils.logger import logger
2726

libqfieldsync/utils/xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from typing import Optional
2121

22-
from PyQt5.QtXml import QDomDocument, QDomElement
22+
from qgis.PyQt.QtXml import QDomDocument, QDomElement
2323

2424

2525
def get_themapcanvas(doc: QDomDocument) -> Optional[QDomElement]:

0 commit comments

Comments
 (0)