diff options
author | David Schulz <david.schulz@theqtcompany.com> | 2015-04-22 15:09:42 +0200 |
---|---|---|
committer | David Schulz <david.schulz@theqtcompany.com> | 2015-04-23 11:39:32 +0000 |
commit | f02e09f60e00bfdb6a586427595830cbf843f3a3 (patch) | |
tree | f807062ade5b844276a36a09a29db7ce7f76790f /src/plugins/texteditor/fontsettingspage.ui | |
parent | 7195bf85596fe978f75aef70c34bf600564807b7 (diff) |
Editor: Adding QFontComboBox to texteditor font settings.
Replacing the QComboBox with a combo box that is capable of
previewing the fonts.
Change-Id: Iff70e4464a99bfa07b0bcf333c2aff402ef5ce28
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/fontsettingspage.ui')
-rw-r--r-- | src/plugins/texteditor/fontsettingspage.ui | 105 |
1 files changed, 49 insertions, 56 deletions
diff --git a/src/plugins/texteditor/fontsettingspage.ui b/src/plugins/texteditor/fontsettingspage.ui index 529deccde6..59246bbea6 100644 --- a/src/plugins/texteditor/fontsettingspage.ui +++ b/src/plugins/texteditor/fontsettingspage.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>521</width> + <width>547</width> <height>306</height> </rect> </property> @@ -17,30 +17,7 @@ <string>Font</string> </property> <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0"> - <widget class="QLabel" name="familyLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Family:</string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QComboBox" name="familyComboBox"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>2</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - </widget> - </item> - <item row="0" column="2"> + <item row="0" column="6"> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -56,30 +33,14 @@ </property> </spacer> </item> - <item row="0" column="3"> - <widget class="QLabel" name="sizeLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> + <item row="1" column="0" colspan="3"> + <widget class="QCheckBox" name="antialias"> <property name="text"> - <string>Size:</string> - </property> - </widget> - </item> - <item row="0" column="4"> - <widget class="QComboBox" name="sizeComboBox"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <string>Antialias</string> </property> </widget> </item> - <item row="0" column="5"> + <item row="0" column="3"> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -95,14 +56,20 @@ </property> </spacer> </item> - <item row="1" column="0" colspan="2"> - <widget class="QCheckBox" name="antialias"> + <item row="0" column="0"> + <widget class="QLabel" name="familyLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="text"> - <string>Antialias</string> + <string>Family:</string> </property> </widget> </item> - <item row="0" column="7"> + <item row="0" column="8"> <widget class="QSpinBox" name="zoomSpinBox"> <property name="suffix"> <string>%</string> @@ -121,7 +88,37 @@ </property> </widget> </item> - <item row="0" column="8"> + <item row="0" column="7"> + <widget class="QLabel" name="zoomLabel"> + <property name="text"> + <string>Zoom:</string> + </property> + </widget> + </item> + <item row="0" column="4"> + <widget class="QLabel" name="sizeLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Size:</string> + </property> + </widget> + </item> + <item row="0" column="5"> + <widget class="QComboBox" name="sizeComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="0" column="9"> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -134,12 +131,8 @@ </property> </spacer> </item> - <item row="0" column="6"> - <widget class="QLabel" name="zoomLabel"> - <property name="text"> - <string>Zoom:</string> - </property> - </widget> + <item row="0" column="1"> + <widget class="QFontComboBox" name="fontComboBox"/> </item> </layout> </widget> |