Compact and indent on JSON cell editor

New setting for enabling the following feature:
when JSON data is loaded in the JSON cell editor, the text is
indented. Before JSON data written back into the cell, the text
is compacted.

See issue #1173

Minor adjustment in preference label: removed ":" for consistency.
This commit is contained in:
mgrojo
2017-11-23 00:37:17 +01:00
parent 24267749ea
commit 67c5ed963e
5 changed files with 55 additions and 7 deletions

View File

@@ -343,7 +343,7 @@
<item row="1" column="0">
<widget class="QLabel" name="label_17">
<property name="text">
<string>Font si&amp;ze:</string>
<string>Font si&amp;ze</string>
</property>
<property name="buddy">
<cstring>spinDataBrowserFontSize</cstring>
@@ -385,6 +385,20 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="checkIndentCompact">
<property name="text">
<string>Indent text on loading. Compact on saving.</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_24">
<property name="text">
<string>JSON cell editor</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>