-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processing] Fix capitalization, ellipsis in extent parameter widget
- Loading branch information
1 parent
68dc698
commit f44be44
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,9 +97,9 @@ def __init__(self, dialog, param): | |
def selectExtent(self): | ||
popupmenu = QMenu() | ||
useLayerExtentAction = QAction( | ||
self.tr('Use layer/canvas extent'), self.btnSelect) | ||
self.tr('Use Layer/Canvas Extent…'), self.btnSelect) | ||
selectOnCanvasAction = QAction( | ||
self.tr('Select extent on canvas'), self.btnSelect) | ||
self.tr('Select Extent on Canvas'), self.btnSelect) | ||
|
||
popupmenu.addAction(useLayerExtentAction) | ||
popupmenu.addAction(selectOnCanvasAction) | ||
|
@@ -109,7 +109,7 @@ def selectExtent(self): | |
|
||
if self.param.flags() & QgsProcessingParameterDefinition.FlagOptional: | ||
useMincoveringExtentAction = QAction( | ||
self.tr('Use min covering extent from input layers'), | ||
self.tr('Use Min Covering Extent from Input Layers'), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nyalldawson
Author
Collaborator
|
||
self.btnSelect) | ||
useMincoveringExtentAction.triggered.connect( | ||
self.useMinCoveringExtent) | ||
|
@@ -121,7 +121,7 @@ def useMinCoveringExtent(self): | |
self.leText.setText('') | ||
|
||
def useLayerExtent(self): | ||
CANVAS_KEY = 'Use canvas extent' | ||
CANVAS_KEY = 'Canvas Extent' | ||
extentsDict = {} | ||
extentsDict[CANVAS_KEY] = {"extent": iface.mapCanvas().extent(), | ||
"authid": iface.mapCanvas().mapSettings().destinationCrs().authid()} | ||
|
@nyalldawson , any reason why we use "Min" instead of "Minimum" here? I don' think we're constrained in space here, we might as well use the full word.