GUI: Improve Preferences-dialog layout.

Make threads-textfield smaller as it can contain only three numbers.
Also set the input mask so that three numbers at max are accepted.
This commit is contained in:
Kimmo Varis 2010-12-26 20:18:49 +02:00
parent 121cb043a7
commit dd13a98fd9
1 changed files with 50 additions and 1 deletions

View File

@ -50,8 +50,17 @@
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<item>
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Number of threads: </string>
</property>
@ -63,13 +72,53 @@
<item>
<widget class="QLineEdit" name="mJobs">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>20</height>
</size>
</property>
<property name="baseSize">
<size>
<width>100</width>
<height>20</height>
</size>
</property>
<property name="inputMask">
<string notr="true">009; </string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="maxLength">
<number>3</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
</widget>
</item>
<item>
<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>
</layout>
</item>
<item>