Commit 106a2fdb authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixes label group context menu


Signed-off-by: Benjamin Jakimow's avatarBenjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de>
parent a58e538e
Pipeline #13356 failed
......@@ -101,7 +101,6 @@ def messageLog(msg, level=Qgis.Info):
"""
QgsApplication.instance().messageLog().logMessage(msg, LOG_MESSAGE_TAG, level)
def initResources():
"""
Loads (or reloads) required Qt resources
......@@ -111,6 +110,16 @@ def initResources():
from eotimeseriesviewer.externals.qps.resources import initQtResources
initQtResources(pathlib.Path(__file__).parent)
def initMapLayerConfigWidgetFactories():
from .externals.qps import \
registerMapLayerConfigWidgetFactories, \
mapLayerConfigWidgetFactories, \
registerMapLayerConfigWidgetFactory
from .labeling import registerLabelShortcutEditorWidget
registerMapLayerConfigWidgetFactories()
for factory in mapLayerConfigWidgetFactories():
qgis.utils.iface.registerMapLayerConfigWidgetFactory(factory)
def initEditorWidgets():
"""
......@@ -128,7 +137,7 @@ def initAll():
"""
initResources()
initEditorWidgets()
initMapLayerConfigWidgetFactories()
def icon() -> QIcon:
"""
......
......@@ -964,7 +964,9 @@ class MapCanvas(QgsMapCanvas):
f'Writes dates/sensor information to selected features in layer(s): {layerNames}.')
a.triggered.connect(lambda *args,
tsd=self.tsd(),
tss=tss: setQuickTSDLabelsForRegisteredLayers(tsd, tss, layer_group=grp))
layer_group=grp,
tss=tss:
setQuickTSDLabelsForRegisteredLayers(tsd, tss, layer_group=layer_group))
for layer in lyrWithSelectedFeatures:
assert isinstance(layer, QgsVectorLayer)
......
Markdown is supported
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