Replace font.capitalization with a capitalize property
authorMohammed Sameer <msameer@foolab.org>
Sun, 28 Jul 2013 18:22:35 +0000 (21:22 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 28 Jul 2013 18:22:35 +0000 (21:22 +0300)
qml/ImageResolutionSettings.qml
qml/VideoResolutionSettings.qml
qml/harmattan/CameraButton.qml

index e287394..514115d 100644 (file)
@@ -70,7 +70,7 @@ Column {
                 imageSettings.resolutions : undefined
 
             delegate: CameraButton {
-                font.capitalization: Font.Capitalize
+                capitalize: true
                 text: qsTr("%1 %2 Mpx").arg(resolutionName).arg(megaPixels)
                 checked: settings.imageResolution == resolutionName
                 onClicked: settings.imageResolution = resolutionName
index 26d4eac..1fbfeb6 100644 (file)
@@ -43,7 +43,7 @@ Column {
             model: videoSettings.resolutions
 
             delegate: CameraButton {
-                font.capitalization: Font.Capitalize
+                capitalize: true
                 text: qsTr("%1 %2").arg(resolutionName).arg(resolution)
                 checked: settings.videoResolution == resolutionName
                 onClicked: settings.videoResolution = resolutionName
index 10d140f..115a90a 100644 (file)
@@ -24,5 +24,6 @@ import QtQuick 1.1
 import com.nokia.meego 1.1
 
 Button {
-
+    property bool capitalize
+    font.capitalization: capitalize ? Font.Capitalize : Font.MixedCase
 }