Commit 939e08b7 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

Label shortcuts now support vector fields with QDate and QDateTime



Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de>
parent d3a3e796
This diff is collapsed.
......@@ -1382,9 +1382,9 @@ class EOTimeSeriesViewer(QgisInterface, QObject):
"""
import example.Images
exampleDataDir = os.path.dirname(example.Images.__file__)
exampleDataDir = pathlib.Path(example.Images.__file__).parent
rasterFiles = list(file_search(exampleDataDir, '*.tif', recursive=True))
vectorFiles = list(file_search(exampleDataDir, re.compile(r'.*\.(gpkg|shp)$'), recursive=True))
vectorFiles = list(file_search(exampleDataDir.parent, re.compile(r'.*\.(gpkg|shp)$'), recursive=True))
if isinstance(n, bool) or not isinstance(n, int):
n = len(rasterFiles)
......
......@@ -897,7 +897,7 @@ class MapCanvas(QgsMapCanvas):
tss = self.tsd()[sourceUris.index(sl.source())]
break
lyrWithSelectedFeatures = [l for l in quickLabelLayers() if l.isEditable() and l.selectedFeatureCount() > 0]
lyrWithSelectedFeatures = [l for l in quickLabelLayers() if l.selectedFeatureCount() > 0]
layerNames = ', '.join([l.name() for l in lyrWithSelectedFeatures])
m = menu.addMenu('Quick Labels')
......@@ -932,7 +932,6 @@ class MapCanvas(QgsMapCanvas):
a.setIcon(classInfo.icon())
a.triggered.connect(lambda _, vl=layer, f=field, c=classInfo: setQuickClassInfo(vl, f, c))
if isinstance(refSensorLayer, SensorProxyLayer):
m = menu.addMenu('Raster stretch...')
action = m.addAction('Linear')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment