Skip to content

Commit 71014d2

Browse files
Allow making Settings window thinner.
- Minimum size showing all text is no longer enforced, the window can be made thinner, but the text is cut off if needed. - "Enable Small Network Buffers" now on 2 lines to reduce width. - the default width shows all text.
1 parent 16aa570 commit 71014d2

1 file changed

Lines changed: 66 additions & 23 deletions

File tree

src/clientsettingsdlgbase.ui

Lines changed: 66 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
<layout class="QHBoxLayout" name="horizontalLayout_7">
2424
<item>
2525
<widget class="QTabWidget" name="tabSettings">
26+
<property name="sizePolicy">
27+
<sizepolicy hsizetype="Ignored" vsizetype="Preferred">
28+
<horstretch>0</horstretch>
29+
<verstretch>0</verstretch>
30+
</sizepolicy>
31+
</property>
2632
<property name="currentIndex">
2733
<number>1</number>
2834
</property>
@@ -43,7 +49,7 @@
4349
</property>
4450
<property name="sizeHint" stdset="0">
4551
<size>
46-
<width>40</width>
52+
<width>0</width>
4753
<height>20</height>
4854
</size>
4955
</property>
@@ -118,6 +124,12 @@
118124
<layout class="QVBoxLayout" name="verticalLayout_9">
119125
<item>
120126
<widget class="QLineEdit" name="pedtAlias">
127+
<property name="sizePolicy">
128+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
129+
<horstretch>0</horstretch>
130+
<verstretch>0</verstretch>
131+
</sizepolicy>
132+
</property>
121133
<property name="minimumSize">
122134
<size>
123135
<width>150</width>
@@ -242,6 +254,12 @@
242254
</item>
243255
<item>
244256
<widget class="QSpinBox" name="spnMixerRows">
257+
<property name="sizePolicy">
258+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
259+
<horstretch>0</horstretch>
260+
<verstretch>0</verstretch>
261+
</sizepolicy>
262+
</property>
245263
<property name="alignment">
246264
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
247265
</property>
@@ -282,7 +300,7 @@
282300
</property>
283301
<property name="sizeHint" stdset="0">
284302
<size>
285-
<width>18</width>
303+
<width>0</width>
286304
<height>20</height>
287305
</size>
288306
</property>
@@ -311,14 +329,14 @@
311329
<item>
312330
<widget class="QComboBox" name="cbxSoundcard">
313331
<property name="sizePolicy">
314-
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
332+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
315333
<horstretch>0</horstretch>
316334
<verstretch>0</verstretch>
317335
</sizepolicy>
318336
</property>
319337
<property name="minimumSize">
320338
<size>
321-
<width>120</width>
339+
<width>0</width>
322340
<height>0</height>
323341
</size>
324342
</property>
@@ -343,7 +361,7 @@
343361
<item>
344362
<widget class="QPushButton" name="butDriverSetup">
345363
<property name="sizePolicy">
346-
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
364+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
347365
<horstretch>0</horstretch>
348366
<verstretch>0</verstretch>
349367
</sizepolicy>
@@ -413,7 +431,7 @@
413431
<item>
414432
<widget class="QLabel" name="lblLInChan">
415433
<property name="sizePolicy">
416-
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
434+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
417435
<horstretch>0</horstretch>
418436
<verstretch>0</verstretch>
419437
</sizepolicy>
@@ -426,7 +444,7 @@
426444
<item>
427445
<widget class="QLabel" name="lblRInChan">
428446
<property name="sizePolicy">
429-
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
447+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
430448
<horstretch>0</horstretch>
431449
<verstretch>0</verstretch>
432450
</sizepolicy>
@@ -470,7 +488,7 @@
470488
<item>
471489
<widget class="QLabel" name="lblLOutChan">
472490
<property name="sizePolicy">
473-
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
491+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
474492
<horstretch>0</horstretch>
475493
<verstretch>0</verstretch>
476494
</sizepolicy>
@@ -483,7 +501,7 @@
483501
<item>
484502
<widget class="QLabel" name="lblROutChan">
485503
<property name="sizePolicy">
486-
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
504+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
487505
<horstretch>0</horstretch>
488506
<verstretch>0</verstretch>
489507
</sizepolicy>
@@ -583,7 +601,7 @@
583601
<item>
584602
<widget class="QRadioButton" name="rbtBufferDelayPreferred">
585603
<property name="sizePolicy">
586-
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
604+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
587605
<horstretch>0</horstretch>
588606
<verstretch>0</verstretch>
589607
</sizepolicy>
@@ -596,7 +614,7 @@
596614
<item>
597615
<widget class="QRadioButton" name="rbtBufferDelayDefault">
598616
<property name="sizePolicy">
599-
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
617+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
600618
<horstretch>0</horstretch>
601619
<verstretch>0</verstretch>
602620
</sizepolicy>
@@ -609,7 +627,7 @@
609627
<item>
610628
<widget class="QRadioButton" name="rbtBufferDelaySafe">
611629
<property name="sizePolicy">
612-
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
630+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
613631
<horstretch>0</horstretch>
614632
<verstretch>0</verstretch>
615633
</sizepolicy>
@@ -650,7 +668,7 @@
650668
</property>
651669
<property name="sizeHint" stdset="0">
652670
<size>
653-
<width>13</width>
671+
<width>0</width>
654672
<height>20</height>
655673
</size>
656674
</property>
@@ -666,6 +684,12 @@
666684
<layout class="QVBoxLayout" name="_15">
667685
<item>
668686
<widget class="QCheckBox" name="chbAutoJitBuf">
687+
<property name="sizePolicy">
688+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
689+
<horstretch>0</horstretch>
690+
<verstretch>0</verstretch>
691+
</sizepolicy>
692+
</property>
669693
<property name="text">
670694
<string>Auto</string>
671695
</property>
@@ -811,13 +835,14 @@
811835
<item>
812836
<widget class="QCheckBox" name="chbEnableOPUS64">
813837
<property name="sizePolicy">
814-
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
838+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
815839
<horstretch>0</horstretch>
816840
<verstretch>0</verstretch>
817841
</sizepolicy>
818842
</property>
819843
<property name="text">
820-
<string>Enable Small Network Buffers</string>
844+
<string>Enable Small
845+
Network Buffers</string>
821846
</property>
822847
</widget>
823848
</item>
@@ -873,7 +898,7 @@
873898
</property>
874899
<property name="minimumSize">
875900
<size>
876-
<width>50</width>
901+
<width>0</width>
877902
<height>20</height>
878903
</size>
879904
</property>
@@ -908,7 +933,7 @@
908933
</property>
909934
<property name="minimumSize">
910935
<size>
911-
<width>50</width>
936+
<width>0</width>
912937
<height>20</height>
913938
</size>
914939
</property>
@@ -991,7 +1016,7 @@
9911016
</property>
9921017
<property name="sizeHint" stdset="0">
9931018
<size>
994-
<width>13</width>
1019+
<width>0</width>
9951020
<height>20</height>
9961021
</size>
9971022
</property>
@@ -1017,7 +1042,7 @@
10171042
</property>
10181043
<property name="sizeHint" stdset="0">
10191044
<size>
1020-
<width>40</width>
1045+
<width>10</width>
10211046
<height>20</height>
10221047
</size>
10231048
</property>
@@ -1134,6 +1159,12 @@
11341159
</item>
11351160
<item>
11361161
<widget class="QCheckBox" name="chbDetectFeedback">
1162+
<property name="sizePolicy">
1163+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
1164+
<horstretch>0</horstretch>
1165+
<verstretch>0</verstretch>
1166+
</sizepolicy>
1167+
</property>
11371168
<property name="text">
11381169
<string>Enable</string>
11391170
</property>
@@ -1161,7 +1192,7 @@
11611192
</property>
11621193
<property name="sizeHint" stdset="0">
11631194
<size>
1164-
<width>40</width>
1195+
<width>10</width>
11651196
<height>20</height>
11661197
</size>
11671198
</property>
@@ -1176,9 +1207,12 @@
11761207
<property name="orientation">
11771208
<enum>Qt::Horizontal</enum>
11781209
</property>
1210+
<property name="sizeType">
1211+
<enum>QSizePolicy::Preferred</enum>
1212+
</property>
11791213
<property name="sizeHint" stdset="0">
11801214
<size>
1181-
<width>10</width>
1215+
<width>20</width>
11821216
<height>20</height>
11831217
</size>
11841218
</property>
@@ -1225,9 +1259,15 @@
12251259
</item>
12261260
<item>
12271261
<widget class="QSlider" name="sldAudioPan">
1262+
<property name="sizePolicy">
1263+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
1264+
<horstretch>0</horstretch>
1265+
<verstretch>0</verstretch>
1266+
</sizepolicy>
1267+
</property>
12281268
<property name="minimumSize">
12291269
<size>
1230-
<width>250</width>
1270+
<width>0</width>
12311271
<height>0</height>
12321272
</size>
12331273
</property>
@@ -1292,9 +1332,12 @@
12921332
<property name="orientation">
12931333
<enum>Qt::Horizontal</enum>
12941334
</property>
1335+
<property name="sizeType">
1336+
<enum>QSizePolicy::Preferred</enum>
1337+
</property>
12951338
<property name="sizeHint" stdset="0">
12961339
<size>
1297-
<width>10</width>
1340+
<width>20</width>
12981341
<height>20</height>
12991342
</size>
13001343
</property>

0 commit comments

Comments
 (0)