Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Add qt6 and QGIS 4 support

## [3.9.13] - 2025-01-02

- Chore: Update tooltip for pick layer action
Expand Down
2 changes: 1 addition & 1 deletion pickLayer/core/picklayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def context_menu_request(self) -> None: # noqa: C901, PLR0915
partial(self.custom_action, action.id())
)
action_order += 1
context_menu.exec_(QtGui.QCursor.pos())
context_menu.exec(QtGui.QCursor.pos())

def zoom_to_feature_func(self) -> None:
feature_box = self.selected_feature.geometry().boundingBox()
Expand Down
14 changes: 7 additions & 7 deletions pickLayer/core/set_active_layer_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ def _get_identify_results(
if len(layers) > 0:
return self.identify(
geometry=QgsGeometry.fromPointXY(location),
mode=QgsMapToolIdentify.TopDownAll,
mode=QgsMapToolIdentify.IdentifyMode.TopDownAll,
layerList=layers,
layerType=QgsMapToolIdentify.VectorLayer,
layerType=QgsMapToolIdentify.Type.VectorLayer,
)
return self.identify(
geometry=QgsGeometry.fromPointXY(location),
mode=QgsMapToolIdentify.TopDownAll,
layerType=QgsMapToolIdentify.VectorLayer,
mode=QgsMapToolIdentify.IdentifyMode.TopDownAll,
layerType=QgsMapToolIdentify.Type.VectorLayer,
)

def _activate_layer_and_previous_map_tool(
Expand Down Expand Up @@ -167,9 +167,9 @@ def _choose_layer_from_identify_results(
origin_map_coordinates: QgsPointXY,
) -> Optional[QgsMapLayer]:
geom_type_preference = {
QgsWkbTypes.PointGeometry: 1,
QgsWkbTypes.LineGeometry: 2,
QgsWkbTypes.PolygonGeometry: 3,
QgsWkbTypes.GeometryType.PointGeometry: 1,
QgsWkbTypes.GeometryType.LineGeometry: 2,
QgsWkbTypes.GeometryType.PolygonGeometry: 3,
}

best_match: Optional[QgsVectorLayer] = None
Expand Down
1 change: 1 addition & 0 deletions pickLayer/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ experimental=False

# deprecated flag (applies to the whole plugin, not just a single version)
deprecated=False
supportsQt6=True
Loading