Changeset View
Changeset View
Standalone View
Standalone View
src/ui/advanceconfig.ui
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <ui version="4.0"> | 2 | <ui version="4.0"> | ||
3 | <class>AdvanceConfig</class> | 3 | <class>AdvanceConfig</class> | ||
4 | <widget class="QWidget" name="AdvanceConfig"> | 4 | <widget class="QWidget" name="AdvanceConfig"> | ||
5 | <property name="geometry"> | 5 | <property name="geometry"> | ||
6 | <rect> | 6 | <rect> | ||
7 | <x>0</x> | 7 | <x>0</x> | ||
8 | <y>0</y> | 8 | <y>0</y> | ||
9 | <width>500</width> | 9 | <width>547</width> | ||
10 | <height>326</height> | 10 | <height>435</height> | ||
11 | </rect> | 11 | </rect> | ||
12 | </property> | 12 | </property> | ||
13 | <layout class="QVBoxLayout" name="verticalLayout"> | 13 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
14 | <item> | 14 | <item> | ||
15 | <layout class="QFormLayout" name="formLayout"> | 15 | <layout class="QFormLayout" name="formLayout"> | ||
16 | <property name="fieldGrowthPolicy"> | 16 | <property name="fieldGrowthPolicy"> | ||
17 | <enum>QFormLayout::FieldsStayAtSizeHint</enum> | 17 | <enum>QFormLayout::FieldsStayAtSizeHint</enum> | ||
18 | </property> | 18 | </property> | ||
19 | <property name="formAlignment"> | 19 | <property name="formAlignment"> | ||
20 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | 20 | <set>Qt::AlignHCenter|Qt::AlignTop</set> | ||
21 | </property> | 21 | </property> | ||
22 | <item row="1" column="0"> | ||||
23 | <widget class="QLabel" name="label_3"> | ||||
24 | <property name="text"> | ||||
25 | <string>Automatically log in:</string> | ||||
26 | </property> | ||||
27 | </widget> | ||||
28 | </item> | ||||
22 | <item row="1" column="1"> | 29 | <item row="1" column="1"> | ||
23 | <layout class="QHBoxLayout" name="horizontalLayout"> | 30 | <layout class="QHBoxLayout" name="horizontalLayout"> | ||
24 | <property name="leftMargin"> | | |||
25 | <number>0</number> | | |||
26 | </property> | | |||
27 | <property name="topMargin"> | | |||
28 | <number>0</number> | | |||
29 | </property> | | |||
30 | <property name="rightMargin"> | | |||
31 | <number>0</number> | | |||
32 | </property> | | |||
33 | <property name="bottomMargin"> | | |||
34 | <number>0</number> | | |||
35 | </property> | | |||
36 | <item> | 31 | <item> | ||
37 | <widget class="QCheckBox" name="autoLogin"> | 32 | <widget class="QCheckBox" name="autoLogin"> | ||
38 | <property name="text"> | 33 | <property name="text"> | ||
39 | <string>as user:</string> | 34 | <string>as user:</string> | ||
40 | </property> | 35 | </property> | ||
41 | </widget> | 36 | </widget> | ||
42 | </item> | 37 | </item> | ||
43 | <item> | 38 | <item> | ||
Show All 33 Lines | 69 | <property name="sizePolicy"> | |||
77 | <verstretch>0</verstretch> | 72 | <verstretch>0</verstretch> | ||
78 | </sizepolicy> | 73 | </sizepolicy> | ||
79 | </property> | 74 | </property> | ||
80 | <property name="text"> | 75 | <property name="text"> | ||
81 | <string>Log in again immediately after logging off</string> | 76 | <string>Log in again immediately after logging off</string> | ||
82 | </property> | 77 | </property> | ||
83 | </widget> | 78 | </widget> | ||
84 | </item> | 79 | </item> | ||
80 | <item row="3" column="0"> | ||||
81 | <spacer name="verticalSpacer"> | ||||
82 | <property name="orientation"> | ||||
83 | <enum>Qt::Vertical</enum> | ||||
84 | </property> | ||||
85 | <property name="sizeHint" stdset="0"> | ||||
86 | <size> | ||||
87 | <width>8</width> | ||||
88 | <height>8</height> | ||||
89 | </size> | ||||
90 | </property> | ||||
91 | </spacer> | ||||
92 | </item> | ||||
93 | <item row="4" column="0"> | ||||
94 | <widget class="QLabel" name="label_7"> | ||||
95 | <property name="text"> | ||||
96 | <string>Cursor theme:</string> | ||||
97 | </property> | ||||
98 | </widget> | ||||
99 | </item> | ||||
100 | <item row="4" column="1"> | ||||
101 | <widget class="QComboBox" name="cursorList"/> | ||||
102 | </item> | ||||
103 | <item row="5" column="0"> | ||||
104 | <spacer name="verticalSpacer_2"> | ||||
105 | <property name="orientation"> | ||||
106 | <enum>Qt::Vertical</enum> | ||||
107 | </property> | ||||
108 | <property name="sizeHint" stdset="0"> | ||||
109 | <size> | ||||
110 | <width>8</width> | ||||
111 | <height>8</height> | ||||
112 | </size> | ||||
113 | </property> | ||||
114 | </spacer> | ||||
115 | </item> | ||||
85 | <item row="6" column="0"> | 116 | <item row="6" column="0"> | ||
86 | <widget class="QLabel" name="label_6"> | 117 | <widget class="QLabel" name="label_6"> | ||
87 | <property name="text"> | 118 | <property name="text"> | ||
88 | <string>Minimum user UID:</string> | 119 | <string>Minimum user UID:</string> | ||
89 | </property> | 120 | </property> | ||
90 | </widget> | 121 | </widget> | ||
91 | </item> | 122 | </item> | ||
92 | <item row="6" column="1"> | 123 | <item row="6" column="1"> | ||
Show All 24 Lines | 145 | <property name="sizePolicy"> | |||
117 | <verstretch>0</verstretch> | 148 | <verstretch>0</verstretch> | ||
118 | </sizepolicy> | 149 | </sizepolicy> | ||
119 | </property> | 150 | </property> | ||
120 | <property name="maxLength"> | 151 | <property name="maxLength"> | ||
121 | <number>6</number> | 152 | <number>6</number> | ||
122 | </property> | 153 | </property> | ||
123 | </widget> | 154 | </widget> | ||
124 | </item> | 155 | </item> | ||
156 | <item row="8" column="0"> | ||||
157 | <spacer name="verticalSpacer_3"> | ||||
158 | <property name="orientation"> | ||||
159 | <enum>Qt::Vertical</enum> | ||||
160 | </property> | ||||
161 | <property name="sizeHint" stdset="0"> | ||||
162 | <size> | ||||
163 | <width>8</width> | ||||
164 | <height>8</height> | ||||
165 | </size> | ||||
166 | </property> | ||||
167 | </spacer> | ||||
168 | </item> | ||||
125 | <item row="9" column="0"> | 169 | <item row="9" column="0"> | ||
126 | <widget class="QLabel" name="label"> | 170 | <widget class="QLabel" name="label"> | ||
127 | <property name="text"> | 171 | <property name="text"> | ||
128 | <string>Halt command:</string> | 172 | <string>Halt command:</string> | ||
129 | </property> | 173 | </property> | ||
130 | </widget> | 174 | </widget> | ||
131 | </item> | 175 | </item> | ||
132 | <item row="9" column="1"> | 176 | <item row="9" column="1"> | ||
133 | <widget class="KUrlRequester" name="haltCommand"> | 177 | <widget class="KUrlRequester" name="haltCommand" native="true"> | ||
134 | <property name="minimumSize"> | 178 | <property name="minimumSize"> | ||
135 | <size> | 179 | <size> | ||
136 | <width>250</width> | 180 | <width>250</width> | ||
137 | <height>0</height> | 181 | <height>0</height> | ||
138 | </size> | 182 | </size> | ||
139 | </property> | 183 | </property> | ||
140 | </widget> | 184 | </widget> | ||
141 | </item> | 185 | </item> | ||
142 | <item row="10" column="0"> | 186 | <item row="10" column="0"> | ||
143 | <widget class="QLabel" name="label_2"> | 187 | <widget class="QLabel" name="label_2"> | ||
144 | <property name="text"> | 188 | <property name="text"> | ||
145 | <string>Reboot command:</string> | 189 | <string>Reboot command:</string> | ||
146 | </property> | 190 | </property> | ||
147 | </widget> | 191 | </widget> | ||
148 | </item> | 192 | </item> | ||
149 | <item row="10" column="1"> | 193 | <item row="10" column="1"> | ||
150 | <widget class="KUrlRequester" name="rebootCommand"> | 194 | <widget class="KUrlRequester" name="rebootCommand" native="true"> | ||
151 | <property name="minimumSize"> | 195 | <property name="minimumSize"> | ||
152 | <size> | 196 | <size> | ||
153 | <width>250</width> | 197 | <width>250</width> | ||
154 | <height>0</height> | 198 | <height>0</height> | ||
155 | </size> | 199 | </size> | ||
156 | </property> | 200 | </property> | ||
157 | </widget> | 201 | </widget> | ||
158 | </item> | 202 | </item> | ||
159 | <item row="1" column="0"> | 203 | <item row="12" column="0"> | ||
160 | <widget class="QLabel" name="label_3"> | 204 | <widget class="QLabel" name="label_8"> | ||
161 | <property name="text"> | 205 | <property name="text"> | ||
162 | <string>Automatically log in:</string> | 206 | <string>Settings synchronization:</string> | ||
163 | </property> | | |||
164 | </widget> | | |||
165 | </item> | | |||
166 | <item row="4" column="1"> | | |||
167 | <widget class="QComboBox" name="cursorList"/> | | |||
168 | </item> | | |||
169 | <item row="4" column="0"> | | |||
170 | <widget class="QLabel" name="label_7"> | | |||
171 | <property name="text"> | | |||
172 | <string>Cursor theme:</string> | | |||
173 | </property> | 207 | </property> | ||
174 | </widget> | 208 | </widget> | ||
175 | </item> | 209 | </item> | ||
176 | <item row="3" column="0"> | 210 | <item row="11" column="0"> | ||
177 | <spacer name="verticalSpacer"> | 211 | <spacer name="verticalSpacer_4"> | ||
178 | <property name="orientation"> | 212 | <property name="orientation"> | ||
179 | <enum>Qt::Vertical</enum> | 213 | <enum>Qt::Vertical</enum> | ||
180 | </property> | 214 | </property> | ||
181 | <property name="sizeHint" stdset="0"> | 215 | <property name="sizeHint" stdset="0"> | ||
182 | <size> | 216 | <size> | ||
183 | <width>8</width> | 217 | <width>8</width> | ||
184 | <height>8</height> | 218 | <height>8</height> | ||
185 | </size> | 219 | </size> | ||
186 | </property> | 220 | </property> | ||
187 | </spacer> | 221 | </spacer> | ||
188 | </item> | 222 | </item> | ||
189 | <item row="5" column="0"> | 223 | <item row="12" column="1"> | ||
190 | <spacer name="verticalSpacer_2"> | 224 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
191 | <property name="orientation"> | 225 | <item> | ||
192 | <enum>Qt::Vertical</enum> | 226 | <widget class="QPushButton" name="syncSettings"> | ||
GB_2: It would be nice if you added the icon `view-refresh` to this button... | |||||
227 | <property name="text"> | ||||
228 | <string>Sync</string> | ||||
193 | </property> | 229 | </property> | ||
194 | <property name="sizeHint" stdset="0"> | 230 | <property name="icon"> | ||
195 | <size> | 231 | <iconset theme="view-refresh"/> | ||
196 | <width>8</width> | | |||
197 | <height>8</height> | | |||
198 | </size> | | |||
199 | </property> | 232 | </property> | ||
200 | </spacer> | 233 | </widget> | ||
GB_2: ...and here the icon `document-revert` or `edit-undo`. | |||||
201 | </item> | 234 | </item> | ||
202 | <item row="8" column="0"> | 235 | <item> | ||
203 | <spacer name="verticalSpacer_3"> | 236 | <widget class="QPushButton" name="resetSettings"> | ||
204 | <property name="orientation"> | 237 | <property name="text"> | ||
205 | <enum>Qt::Vertical</enum> | 238 | <string>Reset</string> | ||
206 | </property> | 239 | </property> | ||
207 | <property name="sizeHint" stdset="0"> | 240 | <property name="icon"> | ||
241 | <iconset theme="edit-undo"/> | ||||
242 | </property> | ||||
243 | </widget> | ||||
244 | </item> | ||||
245 | </layout> | ||||
246 | </item> | ||||
247 | <item row="13" column="1"> | ||||
248 | <widget class="QLabel" name="syncExplanation"> | ||||
249 | <property name="sizePolicy"> | ||||
250 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||||
251 | <horstretch>0</horstretch> | ||||
252 | <verstretch>0</verstretch> | ||||
253 | </sizepolicy> | ||||
254 | </property> | ||||
255 | <property name="minimumSize"> | ||||
208 | <size> | 256 | <size> | ||
209 | <width>8</width> | 257 | <width>320</width> | ||
210 | <height>8</height> | 258 | <height>70</height> | ||
211 | </size> | 259 | </size> | ||
212 | </property> | 260 | </property> | ||
213 | </spacer> | 261 | <property name="text"> | ||
262 | <string>Settings synchronization allows you to transfer your theme customization (color scheme, font, font rendering, icon and Plasma theme) to SDDM.</string> | ||||
GB_2: you theme -> your theme
desktop -> Plasma | |||||
263 | </property> | ||||
264 | <property name="scaledContents"> | ||||
265 | <bool>false</bool> | ||||
266 | </property> | ||||
267 | <property name="wordWrap"> | ||||
268 | <bool>true</bool> | ||||
269 | </property> | ||||
Any tips on how to use theme's smallest font like you can in C++ and QML? The UI in Spectacle doesn't use a FormLayout and achieves it in some special way AFAIK. filipf: Any tips on how to use theme's smallest font like you can in C++ and QML?
The UI in Spectacle… | |||||
Yeah, you have to do it in C++, from within the file that reads the .ui file. Here's how it's done this way in DrKonqi, for example: https://cgit.kde.org/drkonqi.git/tree/src/bugzillaintegration/reportassistantpages_base.cpp#n159 ngraham: Yeah, you have to do it in C++, from within the file that reads the .ui file. Here's how it's… | |||||
filipf: that worked, thanks :) | |||||
270 | </widget> | ||||
214 | </item> | 271 | </item> | ||
215 | </layout> | 272 | </layout> | ||
216 | </item> | 273 | </item> | ||
217 | </layout> | 274 | </layout> | ||
218 | </widget> | 275 | </widget> | ||
219 | <customwidgets> | 276 | <customwidgets> | ||
220 | <customwidget> | 277 | <customwidget> | ||
221 | <class>KUrlRequester</class> | 278 | <class>KUrlRequester</class> | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |
It would be nice if you added the icon view-refresh to this button...