aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/behaviorsettingswidget.ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/behaviorsettingswidget.ui')
-rw-r--r--src/plugins/texteditor/behaviorsettingswidget.ui137
1 files changed, 114 insertions, 23 deletions
diff --git a/src/plugins/texteditor/behaviorsettingswidget.ui b/src/plugins/texteditor/behaviorsettingswidget.ui
index c36bb9ae47..d6d9fed5c6 100644
--- a/src/plugins/texteditor/behaviorsettingswidget.ui
+++ b/src/plugins/texteditor/behaviorsettingswidget.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>801</width>
- <height>547</height>
+ <height>693</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
@@ -169,13 +169,72 @@ Specifies how backspace interacts with indentation.
<string>Cleanups Upon Saving</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="0" colspan="2">
- <widget class="QCheckBox" name="cleanWhitespace">
+ <item row="5" column="1">
+ <widget class="QWidget" name="widget" native="true">
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <property name="spacing">
+ <number>0</number>
+ </property>
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <widget class="QCheckBox" name="skipTrailingWhitespace">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="toolTip">
+ <string>For the file patterns listed, do not trim trailing whitespace.</string>
+ </property>
+ <property name="text">
+ <string>Skip clean whitespace for file types:</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ <property name="tristate">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="ignoreFileTypes">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="acceptDrops">
+ <bool>false</bool>
+ </property>
+ <property name="toolTip">
+ <string>List of wildcard-aware file patterns, separated by commas or semicolons.</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="9" column="0" colspan="2">
+ <widget class="QCheckBox" name="addFinalNewLine">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
<property name="toolTip">
- <string>Removes trailing whitespace upon saving.</string>
+ <string>Always writes a newline character at the end of the file.</string>
</property>
<property name="text">
- <string>&amp;Clean whitespace</string>
+ <string>&amp;Ensure newline at end of file</string>
</property>
</widget>
</item>
@@ -195,26 +254,17 @@ Specifies how backspace interacts with indentation.
</property>
</spacer>
</item>
- <item row="1" column="1">
- <widget class="QCheckBox" name="inEntireDocument">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
+ <item row="0" column="0" colspan="2">
+ <widget class="QCheckBox" name="cleanWhitespace">
<property name="toolTip">
- <string>Cleans whitespace in entire document instead of only for changed parts.</string>
+ <string>Removes trailing whitespace upon saving.</string>
</property>
<property name="text">
- <string>In entire &amp;document</string>
+ <string>&amp;Clean whitespace</string>
</property>
</widget>
</item>
- <item row="2" column="1">
+ <item row="3" column="1">
<widget class="QCheckBox" name="cleanIndentation">
<property name="enabled">
<bool>false</bool>
@@ -227,13 +277,22 @@ Specifies how backspace interacts with indentation.
</property>
</widget>
</item>
- <item row="3" column="0" colspan="2">
- <widget class="QCheckBox" name="addFinalNewLine">
+ <item row="1" column="1">
+ <widget class="QCheckBox" name="inEntireDocument">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="toolTip">
- <string>Always writes a newline character at the end of the file.</string>
+ <string>Cleans whitespace in entire document instead of only for changed parts.</string>
</property>
<property name="text">
- <string>&amp;Ensure newline at end of file</string>
+ <string>In entire &amp;document</string>
</property>
</widget>
</item>
@@ -521,5 +580,37 @@ Specifies how backspace interacts with indentation.
</hint>
</hints>
</connection>
+ <connection>
+ <sender>cleanWhitespace</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>skipTrailingWhitespace</receiver>
+ <slot>setEnabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>530</x>
+ <y>48</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>548</x>
+ <y>144</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>cleanWhitespace</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>ignoreFileTypes</receiver>
+ <slot>setEnabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>530</x>
+ <y>48</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>556</x>
+ <y>177</y>
+ </hint>
+ </hints>
+ </connection>
</connections>
</ui>