aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Ove Hufthammer <[email protected]>2017-07-29 18:32:54 +0200
committerKarl Ove Hufthammer <[email protected]>2017-07-29 18:36:35 +0200
commit8acf11c48dc8802c8ef370aadb63fbaa7b1b3721 (patch)
tree0e3cc04a8295d8172a0e740e42724cba63921f76
parenta2994e820e8297fe5b4b466ba42387d521bd83be (diff)
Improved layout for preference dialog.
Widgets are now next to their labels, instead of in a separate column (which moved them very far away from the labels, since the dialog had some very long strings).
-rw-r--r--src/prefs/prefs_editor.ui52
-rw-r--r--src/prefs/prefs_tm.ui41
2 files changed, 54 insertions, 39 deletions
diff --git a/src/prefs/prefs_editor.ui b/src/prefs/prefs_editor.ui
index 1bbef9e..e54ca40 100644
--- a/src/prefs/prefs_editor.ui
+++ b/src/prefs/prefs_editor.ui
@@ -51,30 +51,34 @@
</widget>
</item>
<item row="2" column="0">
- <widget class="QLabel" name="l1">
- <property name="toolTip">
- <string>Set to 2 to disable word completion</string>
- </property>
- <property name="text">
- <string>Minimum word length for word completion</string>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <widget class="QSpinBox" name="kcfg_WordCompletionLength">
- <property name="toolTip">
- <string>Set to 2 to disable word completion</string>
- </property>
- <property name="specialValueText">
- <string>Disable word completion</string>
- </property>
- <property name="minimum">
- <number>2</number>
- </property>
- <property name="maximum">
- <number>20</number>
- </property>
- </widget>
+ <layout class="QHBoxLayout">
+ <item>
+ <widget class="QLabel" name="l1">
+ <property name="toolTip">
+ <string>Set to 2 to disable word completion</string>
+ </property>
+ <property name="text">
+ <string>Minimum word length for word completion</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="kcfg_WordCompletionLength">
+ <property name="toolTip">
+ <string>Set to 2 to disable word completion</string>
+ </property>
+ <property name="specialValueText">
+ <string>Disable word completion</string>
+ </property>
+ <property name="minimum">
+ <number>2</number>
+ </property>
+ <property name="maximum">
+ <number>20</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
</layout>
</widget>
diff --git a/src/prefs/prefs_tm.ui b/src/prefs/prefs_tm.ui
index 51992e2..b2a5fec 100644
--- a/src/prefs/prefs_tm.ui
+++ b/src/prefs/prefs_tm.ui
@@ -43,21 +43,32 @@
</widget>
</item>
<item row="1" column="0" >
- <widget class="QLabel" name="label" >
- <property name="text" >
- <string>Maximum number of suggestions:</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1" >
- <widget class="QSpinBox" name="kcfg_SuggCount" >
- <property name="toolTip" >
- <string>Set the maximum number of suggestions</string>
- </property>
- <property name="whatsThis" >
- <string>You can change the maximum number of suggestions, default is 7.</string>
- </property>
- </widget>
+ <layout class="QHBoxLayout">
+ <item>
+ <widget class="QLabel" name="label" >
+ <property name="text" >
+ <string>Maximum number of suggestions:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QSpinBox" name="kcfg_SuggCount" >
+ <property name="toolTip" >
+ <string>Set the maximum number of suggestions</string>
+ </property>
+ <property name="whatsThis" >
+ <string>You can change the maximum number of suggestions, default is 7.</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </spacer>
+ </item>
+ </layout>
</item>
<item row="2" column="0" >
<widget class="QCheckBox" name="kcfg_AutoaddTM" >