Commit e3bb7207 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files
parent 78f4a48b
Pipeline #13924 failed with stage
in 5 seconds
......@@ -1031,10 +1031,17 @@ class LabelShortcutEditorWidgetWrapper(QgsEditorWidgetWrapper):
if isinstance(editor, QLineEdit):
editor.textChanged.connect(self.onValueChanged)
elif isinstance(editor, (QgsTimeEdit, QgsDateEdit, QgsDateTimeEdit)):
if isinstance(editor, QgsDateEdit):
editor.setDisplayFormat('yyyy-MM-dd')
elif isinstance(editor, QgsDateTimeEdit):
editor.setDisplayFormat('yyyy-MM-dd HH:mm')
elif isinstance(editor, QgsTimeEdit):
pass
editor.clear()
editor.valueChanged.connect(self.onValueChanged)
elif isinstance(editor, (QgsDoubleSpinBox, QgsSpinBox)):
editor.valueChanged.connect(self.onValueChanged)
else:
s = ""
......
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