Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
06ee5c1e
Commit
06ee5c1e
authored
May 27, 2009
by
Alessandro Portale
Browse files
Making sure that tabSize and indentSize spinboxes stay attached
to their label. Less layout involved.
parent
991998da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/behaviorsettingspage.ui
View file @
06ee5c1e
...
...
@@ -10,144 +10,40 @@
<height>
367
</height>
</rect>
</property>
<layout
class=
"Q
Grid
Layout"
name=
"
grid
Layout_
3
"
>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QGroupBox"
name=
"groupBox
Storage
Settings"
>
<layout
class=
"Q
VBox
Layout"
name=
"
vertical
Layout_
2
"
>
<item>
<widget
class=
"QGroupBox"
name=
"groupBox
TabAndIndent
Settings"
>
<property
name=
"title"
>
<string>
Storage
</string>
<string>
Tabs and Indentation
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout
_3
"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<widget
class=
"QCheckBox"
name=
"cleanWhitespace"
>
<property
name=
"toolTip"
>
<string>
Removes trailing whitespace on saving.
</string>
</property>
<property
name=
"text"
>
<string>
&
Clean whitespace
</string>
</property>
</widget>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
<spacer
name=
"horizontalSpacer_2"
>
<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=
"inEntireDocument"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"toolTip"
>
<string>
Clean whitespace in entire document instead of only for changed parts.
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"insertSpaces"
>
<property
name=
"text"
>
<string>
In
entire
&
document
</string>
<string>
In
sert
&
spaces instead of tabs
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"cleanIndentationLayout"
>
<item>
<spacer
name=
"cleanIndentationSpacer"
>
<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>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"autoIndent"
>
<property
name=
"text"
>
<string>
Enable automatic
&
indentation
</string>
</property>
</
spacer
>
</
widget
>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"cleanIndentation"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"smartBackspace"
>
<property
name=
"toolTip"
>
<string>
Correct leading whitespace according to tab settings
.
</string>
<string>
Backspace will go back one indentation level instead of one space
.
</string>
</property>
<property
name=
"text"
>
<string>
Clean
indentation
</string>
<string>
&
Backspace follows
indentation
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"addFinalNewLine"
>
<property
name=
"text"
>
<string>
&
Ensure newline at end of file
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
8
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QGroupBox"
name=
"groupBoxTabAndIndentSettings"
>
<property
name=
"title"
>
<string>
Tabs and Indentation
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"insertSpaces"
>
<property
name=
"text"
>
<string>
Insert
&
spaces instead of tabs
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<spacer
name=
"horizontalSpacer_5"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeType"
>
<enum>
QSizePolicy::Expanding
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
0
</width>
<height>
10
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"0"
column=
"2"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_3"
>
<item>
<item
row=
"0"
column=
"2"
>
<widget
class=
"QLabel"
name=
"labelTabSize"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Preferred"
>
...
...
@@ -163,20 +59,7 @@
</property>
</widget>
</item>
<item>
<spacer
name=
"horizontalSpacer_3"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
5
</width>
<height>
5
</height>
</size>
</property>
</spacer>
</item>
<item>
<item
row=
"0"
column=
"3"
>
<widget
class=
"QSpinBox"
name=
"tabSize"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Fixed"
>
...
...
@@ -192,31 +75,7 @@
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"0"
column=
"3"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
0
</width>
<height>
10
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"autoIndent"
>
<property
name=
"text"
>
<string>
Enable automatic
&
indentation
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"2"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_4"
>
<item>
<item
row=
"1"
column=
"2"
>
<widget
class=
"QLabel"
name=
"labelIndentSize"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Preferred"
>
...
...
@@ -232,20 +91,7 @@
</property>
</widget>
</item>
<item>
<spacer
name=
"horizontalSpacer_4"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
5
</width>
<height>
5
</height>
</size>
</property>
</spacer>
</item>
<item>
<item
row=
"1"
column=
"3"
>
<widget
class=
"QSpinBox"
name=
"indentSize"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Fixed"
>
...
...
@@ -261,19 +107,35 @@
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
rowspan=
"3"
>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"0"
column=
"4"
rowspan=
"3"
>
<spacer
name=
"horizontalSpacer_3"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"smartBackspace"
>
<property
name=
"toolTip"
>
<string>
Backspace will go back one indentation level instead of one space.
</string>
</property>
<property
name=
"text"
>
<string>
&
Backspace follows indentation
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
colspan=
"4"
>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QLabel"
name=
"label"
>
...
...
@@ -322,8 +184,125 @@
</layout>
</widget>
</item>
<item>
<widget
class=
"QGroupBox"
name=
"groupBoxStorageSettings"
>
<property
name=
"title"
>
<string>
Storage
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_3"
>
<item>
<widget
class=
"QCheckBox"
name=
"cleanWhitespace"
>
<property
name=
"toolTip"
>
<string>
Removes trailing whitespace on saving.
</string>
</property>
<property
name=
"text"
>
<string>
&
Clean whitespace
</string>
</property>
</widget>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
<spacer
name=
"horizontalSpacer_2"
>
<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=
"inEntireDocument"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"toolTip"
>
<string>
Clean whitespace in entire document instead of only for changed parts.
</string>
</property>
<property
name=
"text"
>
<string>
In entire
&
document
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"cleanIndentationLayout"
>
<item>
<spacer
name=
"cleanIndentationSpacer"
>
<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=
"cleanIndentation"
>
<property
name=
"enabled"
>
<bool>
false
</bool>
</property>
<property
name=
"toolTip"
>
<string>
Correct leading whitespace according to tab settings.
</string>
</property>
<property
name=
"text"
>
<string>
Clean indentation
</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"addFinalNewLine"
>
<property
name=
"text"
>
<string>
&
Ensure newline at end of file
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
8
</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<tabstops>
<tabstop>
insertSpaces
</tabstop>
<tabstop>
tabSize
</tabstop>
<tabstop>
autoIndent
</tabstop>
<tabstop>
indentSize
</tabstop>
<tabstop>
smartBackspace
</tabstop>
<tabstop>
tabKeyBehavior
</tabstop>
<tabstop>
cleanWhitespace
</tabstop>
<tabstop>
inEntireDocument
</tabstop>
<tabstop>
cleanIndentation
</tabstop>
<tabstop>
addFinalNewLine
</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment