FontUi: Fix layout

The old layout resulted in a too wide dialog
(especially in some localizations)
This commit is contained in:
Juergen Spitzmueller 2017-04-12 12:49:38 +02:00
parent ddacfc0581
commit 06fb58a2da

View File

@ -6,68 +6,14 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>541</width> <width>533</width>
<height>319</height> <height>447</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>FontUi</string> <string>FontUi</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="1" column="1">
<widget class="QComboBox" name="fontsDefaultCO">
<property name="toolTip">
<string>Select the default family for the document</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="BaseSizeLA">
<property name="text">
<string>&amp;Base size:</string>
</property>
<property name="buddy">
<cstring>fontsizeCO</cstring>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QComboBox" name="fontsizeCO">
<property name="toolTip">
<string/>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="fontencLA">
<property name="text">
<string>LaTe&amp;X font encoding:</string>
</property>
<property name="buddy">
<cstring>fontencCO</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="fontencCO"/>
</item>
<item row="2" column="2" colspan="2">
<widget class="QLineEdit" name="fontencLE">
<property name="toolTip">
<string>Specify the font encoding (e.g., T1).</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="fontsRomanLA">
<property name="text">
<string>&amp;Roman:</string>
</property>
<property name="buddy">
<cstring>fontsRomanCO</cstring>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2"> <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="osFontsCB"> <widget class="QCheckBox" name="osFontsCB">
<property name="toolTip"> <property name="toolTip">
@ -78,7 +24,43 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2"> <item row="1" column="0">
<widget class="QLabel" name="fontsDefaultLA">
<property name="text">
<string>&amp;Default family:</string>
</property>
<property name="buddy">
<cstring>fontsDefaultCO</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QComboBox" name="fontsDefaultCO">
<property name="toolTip">
<string>Select the default family for the document</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="BaseSizeLA">
<property name="text">
<string>&amp;Base size:</string>
</property>
<property name="buddy">
<cstring>fontsizeCO</cstring>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="fontsizeCO">
<property name="toolTip">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -91,13 +73,39 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="0"> </layout>
<widget class="QLabel" name="fontsDefaultLA"> </item>
<item row="2" column="0">
<widget class="QLabel" name="fontencLA">
<property name="text"> <property name="text">
<string>&amp;Default family:</string> <string>&amp;LaTeX font encoding:</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>fontsDefaultCO</cstring> <cstring>fontencCO</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QComboBox" name="fontencCO"/>
</item>
<item>
<widget class="QLineEdit" name="fontencLE">
<property name="toolTip">
<string>Specify the font encoding (e.g., T1).</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="fontsRomanLA">
<property name="text">
<string>&amp;Roman:</string>
</property>
<property name="buddy">
<cstring>fontsRomanCO</cstring>
</property> </property>
</widget> </widget>
</item> </item>
@ -119,13 +127,28 @@
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QComboBox" name="fontsSansCO"> <widget class="QComboBox" name="fontsSansCO">
<property name="toolTip"> <property name="toolTip">
<string>Select the Sans Serif (grotesque) typeface</string> <string>Select the Sans Serif (grotesque) typeface</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="2"> <item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="scaleSansLA"> <widget class="QLabel" name="scaleSansLA">
<property name="text"> <property name="text">
<string>S&amp;cale (%):</string> <string>S&amp;cale (%):</string>
@ -135,14 +158,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item>
<widget class="QComboBox" name="fontsTypewriterCO">
<property name="toolTip">
<string>Select the typewriter (monospaced) typeface</string>
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QSpinBox" name="scaleSansSB"> <widget class="QSpinBox" name="scaleSansSB">
<property name="toolTip"> <property name="toolTip">
<string>Scale the Sans Serif font to match the base font's dimensions</string> <string>Scale the Sans Serif font to match the base font's dimensions</string>
@ -155,6 +171,8 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</item>
<item row="5" column="0"> <item row="5" column="0">
<widget class="QLabel" name="fontsTypewriterLA"> <widget class="QLabel" name="fontsTypewriterLA">
<property name="text"> <property name="text">
@ -165,7 +183,29 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="2"> <item row="5" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QComboBox" name="fontsTypewriterCO">
<property name="toolTip">
<string>Select the typewriter (monospaced) typeface</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="scaleTypewriterLA"> <widget class="QLabel" name="scaleTypewriterLA">
<property name="text"> <property name="text">
<string>Sc&amp;ale (%):</string> <string>Sc&amp;ale (%):</string>
@ -175,14 +215,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item>
<widget class="QComboBox" name="fontsMathCO">
<property name="toolTip">
<string>Select the math typeface</string>
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QSpinBox" name="scaleTypewriterSB"> <widget class="QSpinBox" name="scaleTypewriterSB">
<property name="toolTip"> <property name="toolTip">
<string>Scale the Typewriter font to match the base font's dimensions</string> <string>Scale the Typewriter font to match the base font's dimensions</string>
@ -195,6 +228,8 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</item>
<item row="6" column="0"> <item row="6" column="0">
<widget class="QLabel" name="fontsMathLA"> <widget class="QLabel" name="fontsMathLA">
<property name="text"> <property name="text">
@ -205,6 +240,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1">
<widget class="QComboBox" name="fontsMathCO">
<property name="toolTip">
<string>Select the math typeface</string>
</property>
</widget>
</item>
<item row="7" column="0"> <item row="7" column="0">
<widget class="QLabel" name="cjkFontLA"> <widget class="QLabel" name="cjkFontLA">
<property name="text"> <property name="text">