aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/behaviorsettingspage.ui
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-09-15 15:27:24 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2010-09-15 15:27:24 +0200
commit0f0d6cf8a4c436f00e7cf157654a3494decb5b70 (patch)
tree4b7c290603ff786b3dc230a57a205abf63c9166b /src/plugins/texteditor/behaviorsettingspage.ui
parent8df6dd6d7d04791ae0d014b50ceeff5d2212d31f (diff)
Add tooltip for 'Block indentation style' in editor behavior config.
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/texteditor/behaviorsettingspage.ui')
-rw-r--r--src/plugins/texteditor/behaviorsettingspage.ui42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/plugins/texteditor/behaviorsettingspage.ui b/src/plugins/texteditor/behaviorsettingspage.ui
index 1f4a5c1838..0a9e92ae08 100644
--- a/src/plugins/texteditor/behaviorsettingspage.ui
+++ b/src/plugins/texteditor/behaviorsettingspage.ui
@@ -162,6 +162,48 @@
</item>
<item row="0" column="1">
<widget class="QComboBox" name="indentBlocksBehavior">
+ <property name="toolTip">
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;
+Controls the indentation style of curly brace blocks.
+
+&lt;ul&gt;
+&lt;li&gt;Exclude Braces: The braces are not indented.
+&lt;pre&gt;
+void foo()
+{
+ if (a)
+ {
+ bar();
+ }
+}
+&lt;/pre&gt;
+&lt;/li&gt;
+
+&lt;li&gt;Include Braces: The braces are indented. The contents of the block are on the same level as the braces.
+&lt;pre&gt;
+void foo()
+ {
+ if (a)
+ {
+ bar();
+ }
+ }
+&lt;/pre&gt;
+&lt;/li&gt;
+
+&lt;li&gt;GNU Style: Indent the braces for blocks in statements. The contents are indented twice.
+&lt;pre&gt;
+void foo()
+{
+ if (a)
+ {
+ bar();
+ }
+}
+&lt;/pre&gt;
+&lt;/li&gt;
+&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ </property>
<item>
<property name="text">
<string>Exclude Braces</string>