diff options
author | Roopesh Chander <roop@forwardbias.in> | 2009-10-04 00:26:21 +0530 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-02-08 16:59:10 +0100 |
commit | ea13309b9a1ecc7499849488eda9da2a7f79812e (patch) | |
tree | 4a562a4ccd75451b8aec07dee5c86412f9983d36 /src/plugins/texteditor/behaviorsettingspage.ui | |
parent | 2a58049e6a99acb5b1525776ee04189c38817d0d (diff) |
Add a checkbox for 'auto-determine spaces or tabs from the previous line'
Merge-request: 1766
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/behaviorsettingspage.ui')
-rw-r--r-- | src/plugins/texteditor/behaviorsettingspage.ui | 138 |
1 files changed, 93 insertions, 45 deletions
diff --git a/src/plugins/texteditor/behaviorsettingspage.ui b/src/plugins/texteditor/behaviorsettingspage.ui index 3125874167..eddd849c26 100644 --- a/src/plugins/texteditor/behaviorsettingspage.ui +++ b/src/plugins/texteditor/behaviorsettingspage.ui @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>615</width> - <height>421</height> + <height>461</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout_4"> @@ -27,13 +27,46 @@ </widget> </item> <item row="1" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <spacer name="horizontalSpacer_5"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Fixed</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>30</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCheckBox" name="autoInsertSpaces"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="toolTip"> + <string>Automatically determine whether to insert spaces or tabs based on the previous line in the file</string> + </property> + <property name="text"> + <string>Based on the previous line</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="2" column="0"> <widget class="QCheckBox" name="autoIndent"> <property name="text"> <string>Enable automatic &indentation</string> </property> </widget> </item> - <item row="2" column="0"> + <item row="3" column="0"> <widget class="QCheckBox" name="smartBackspace"> <property name="toolTip"> <string>Backspace will go back one indentation level instead of one space.</string> @@ -75,39 +108,7 @@ </property> </widget> </item> - <item row="1" column="2"> - <widget class="QLabel" name="labelIndentSize"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>&Indent size:</string> - </property> - <property name="buddy"> - <cstring>indentSize</cstring> - </property> - </widget> - </item> - <item row="1" column="3"> - <widget class="QSpinBox" name="indentSize"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimum"> - <number>1</number> - </property> - <property name="maximum"> - <number>20</number> - </property> - </widget> - </item> - <item row="0" column="1" rowspan="4"> + <item row="0" column="1" rowspan="5"> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -133,7 +134,7 @@ </property> </spacer> </item> - <item row="3" column="0"> + <item row="4" column="0"> <widget class="QCheckBox" name="indentBraces"> <property name="toolTip"> <string>Braces will be flush with indented block, except first indent level.</string> @@ -143,6 +144,38 @@ </property> </widget> </item> + <item row="1" column="2"> + <widget class="QLabel" name="labelIndentSize"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>&Indent size:</string> + </property> + <property name="buddy"> + <cstring>indentSize</cstring> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QSpinBox" name="indentSize"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>20</number> + </property> + </widget> + </item> </layout> </item> <item> @@ -328,7 +361,6 @@ <tabstop>insertSpaces</tabstop> <tabstop>tabSize</tabstop> <tabstop>autoIndent</tabstop> - <tabstop>indentSize</tabstop> <tabstop>smartBackspace</tabstop> <tabstop>tabKeyBehavior</tabstop> <tabstop>cleanWhitespace</tabstop> @@ -345,12 +377,12 @@ <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> - <x>47</x> - <y>184</y> + <x>67</x> + <y>252</y> </hint> <hint type="destinationlabel"> - <x>91</x> - <y>212</y> + <x>148</x> + <y>281</y> </hint> </hints> </connection> @@ -361,12 +393,28 @@ <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> - <x>20</x> - <y>20</y> + <x>40</x> + <y>251</y> + </hint> + <hint type="destinationlabel"> + <x>77</x> + <y>310</y> + </hint> + </hints> + </connection> + <connection> + <sender>insertSpaces</sender> + <signal>toggled(bool)</signal> + <receiver>autoInsertSpaces</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>105</x> + <y>49</y> </hint> <hint type="destinationlabel"> - <x>20</x> - <y>20</y> + <x>105</x> + <y>78</y> </hint> </hints> </connection> |