From 68cb8236ca7d02fe726e233618eaddc978f33e1f Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 12 May 2015 21:37:59 +0200 Subject: FontDialog: support i18n for the display names of font.weight enums Change-Id: I2e31ebe9f34bd862c9a375a99e625d42e64a7129 Reviewed-by: Shawn Rutledge --- src/dialogs/DefaultFontDialog.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/dialogs/DefaultFontDialog.qml') 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 -- cgit v1.2.1