diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-05-12 21:37:59 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-05-18 12:06:53 +0000 |
commit | 68cb8236ca7d02fe726e233618eaddc978f33e1f (patch) | |
tree | 8f5152423f5278d4e3bc66fbc3194599d217ecf8 /src/dialogs/DefaultFontDialog.qml | |
parent | 1f0daa7a6c8b29fa148dadaf92be260567f79630 (diff) | |
download | qtquickcontrols-68cb8236ca7d02fe726e233618eaddc978f33e1f.tar.gz |
FontDialog: support i18n for the display names of font.weight enums
Change-Id: I2e31ebe9f34bd862c9a375a99e625d42e64a7129
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/dialogs/DefaultFontDialog.qml')
-rw-r--r-- | src/dialogs/DefaultFontDialog.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dialogs/DefaultFontDialog.qml b/src/dialogs/DefaultFontDialog.qml index b96c0f90..23618e3b 100644 --- a/src/dialogs/DefaultFontDialog.qml +++ b/src/dialogs/DefaultFontDialog.qml @@ -199,15 +199,15 @@ AbstractFontDialog { TableViewColumn { id: weightColumn; role: "name"; title: qsTr("Weight") } model: ListModel { id: weightModel - ListElement { name: "Thin"; weight: Font.Thin } - ListElement { name: "ExtraLight"; weight: Font.ExtraLight } - ListElement { name: "Light"; weight: Font.Light } - ListElement { name: "Normal"; weight: Font.Normal } - ListElement { name: "Medium"; weight: Font.Medium } - ListElement { name: "DemiBold"; weight: Font.DemiBold } - ListElement { name: "Bold"; weight: Font.Bold } - ListElement { name: "ExtraBold"; weight: Font.ExtraBold } - ListElement { name: "Black"; weight: Font.Black } + ListElement { name: qsTr("Thin"); weight: Font.Thin } + ListElement { name: qsTr("ExtraLight"); weight: Font.ExtraLight } + ListElement { name: qsTr("Light"); weight: Font.Light } + ListElement { name: qsTr("Normal"); weight: Font.Normal } + ListElement { name: qsTr("Medium"); weight: Font.Medium } + ListElement { name: qsTr("DemiBold"); weight: Font.DemiBold } + ListElement { name: qsTr("Bold"); weight: Font.Bold } + ListElement { name: qsTr("ExtraBold"); weight: Font.ExtraBold } + ListElement { name: qsTr("Black"); weight: Font.Black } Component.onCompleted: weightListView.reset() function findIndex() { var currentRow = 1 |