@ -74,56 +74,6 @@ Item {
QtLayouts . ColumnLayout {
anchors.left: parent . left
QtControls . GroupBox {
QtLayouts.Layout.fillWidth: true
title: i18n ( "Font" )
flat: true
QtLayouts . GridLayout { / / t h e r e ' s n o F o r m L a y o u t : (
columns: 2
QtLayouts.Layout.fillWidth: true
QtControls . Label {
QtLayouts.Layout.fillWidth: true
horizontalAlignment: Text . AlignRight
text: i18n ( "Font style:" )
}
QtControls . ComboBox {
id: fontFamilyComboBox
QtLayouts.Layout.fillWidth: true
/ / C o m b o B o x ' s s i z i n g i s j u s t u t t e r l y b r o k e n
QtLayouts.Layout.minimumWidth: units . gridUnit * 10
model: fontsModel
/ / d o e s n ' t a u t o d e d u c e f r o m m o d e l b e c a u s e w e m a n u a l l y p o p u l a t e i t
textRole: "text"
onCurrentIndexChanged: {
var current = model . get ( currentIndex )
if ( current ) {
cfg_fontFamily = current . value
appearancePage . configurationChanged ( )
}
}
}
/ / s p a c e r , c a n n o t d o Q t . A l i g n T o p o n t h e f o n t s t y l e l a b e l + r o w S p a n 3 , o t h e r w i s e l o o k s o d d
Item {
QtLayouts.Layout.fillWidth: true
QtLayouts.Layout.rowSpan: 2
}
QtControls . CheckBox {
id: boldCheckBox
text: i18n ( "Bold text" )
}
QtControls . CheckBox {
id: italicCheckBox
text: i18n ( "Italic text" )
}
}
}
QtControls . GroupBox {
QtLayouts.Layout.fillWidth: true
@ -212,6 +162,48 @@ Item {
}
}
}
QtLayouts . RowLayout {
QtLayouts.Layout.fillWidth: true
QtControls . Label {
text: i18n ( "Font style:" )
}
QtControls . ComboBox {
id: fontFamilyComboBox
QtLayouts.Layout.fillWidth: true
/ / C o m b o B o x ' s s i z i n g i s j u s t u t t e r l y b r o k e n
QtLayouts.Layout.minimumWidth: units . gridUnit * 10
model: fontsModel
/ / d o e s n ' t a u t o d e d u c e f r o m m o d e l b e c a u s e w e m a n u a l l y p o p u l a t e i t
textRole: "text"
onCurrentIndexChanged: {
var current = model . get ( currentIndex )
if ( current ) {
cfg_fontFamily = current . value
appearancePage . configurationChanged ( )
}
}
}
QtControls . Button {
id: boldCheckBox
tooltip: i18n ( "Bold text" )
iconName: "format-text-bold"
checkable: true
Accessible.name: tooltip
}
QtControls . Button {
id: italicCheckBox
tooltip: i18n ( "Italic text" )
iconName: "format-text-italic"
checkable: true
Accessible.name: tooltip
}
}
}
Component.onCompleted: {