Use font.capitalization instead of the custom javascript function used and return...
[harmattan/cameraplus] / qml / VideoResolutionSettings.qml
index 6b4308c..e719002 100644 (file)
@@ -41,12 +41,9 @@ Column {
 
                         model: videoSettings.resolutions
 
-                        function name(name, res) {
-                                return name.charAt(0).toUpperCase() + name.slice(1) + " " + res;
-                        }
-
                         delegate: Button {
-                                text: resolutions.name(resolutionName, resolution);
+                                font.capitalization: Font.Capitalize
+                                text: qsTr("%1 %2").arg(resolutionName).arg(resolution);
                                 checked: settings.videoResolution == resolutionName;
                                 onClicked: settings.videoResolution = resolutionName;
                         }