Indent/Compact setting moved to Cell Editor

Removed the related check box in the Preferences Dialog. A new checkable
tool-button with icon from the Silk collection. When checked, the
indent-on-loading and compact-on-saving feature is enabled. When widget
is destroyed, the setting value is saved from this button state.

Currently it is only usable in the JSON mode, but could be reused in XML
and any other future modes.

See issue #1173.

Some tooltips in the Edit Dialog have been corrected, since it is not only
used for text.
This commit is contained in:
mgrojo
2017-12-08 17:50:15 +01:00
parent a41394ad4a
commit 232130bc60
7 changed files with 76 additions and 23 deletions
-14
View File
@@ -445,20 +445,6 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="checkIndentCompact">
<property name="text">
<string>Pretty print 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>