aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/snippets/qml/codingconventions
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2012-07-18 12:29:16 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-18 05:14:27 +0200
commit1fb66c77d55cfdbe5df9919cbe2f42ddde34fb22 (patch)
tree6c7ad27dabba48807cd05b50536a5bc41c75f050 /src/quick/doc/snippets/qml/codingconventions
parent19452e126eda08a9837792299e914865febeba47 (diff)
Minor doc fixes
Don't capitalize minor words in titles to be consistent with Qt doc. Change-Id: Ib39ec50d7f9730a5bbf2b574ade8270e9290ec90 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/doc/snippets/qml/codingconventions')
-rw-r--r--src/quick/doc/snippets/qml/codingconventions/photo.qml10
-rw-r--r--src/quick/doc/snippets/qml/codingconventions/private.qml2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/doc/snippets/qml/codingconventions/photo.qml b/src/quick/doc/snippets/qml/codingconventions/photo.qml
index 1bd2811e9f..6de72c9e72 100644
--- a/src/quick/doc/snippets/qml/codingconventions/photo.qml
+++ b/src/quick/doc/snippets/qml/codingconventions/photo.qml
@@ -57,11 +57,11 @@ Rectangle {
color: "gray" // object properties
x: 20; y: 20; height: 150 // try to group related properties together
width: { // large bindings
- if(photoImage.width > 200){
- photoImage.width;
- }else{
- 200;
- }
+ if (photoImage.width > 200) {
+ photoImage.width;
+ } else {
+ 200;
+ }
}
Rectangle { // child objects
diff --git a/src/quick/doc/snippets/qml/codingconventions/private.qml b/src/quick/doc/snippets/qml/codingconventions/private.qml
index 9aba1d0377..6aeaa5a6e8 100644
--- a/src/quick/doc/snippets/qml/codingconventions/private.qml
+++ b/src/quick/doc/snippets/qml/codingconventions/private.qml
@@ -44,6 +44,6 @@ import QtQuick 2.0
Item {
id: component
width: 40; height: 50
- property real __area: width * height * 0.5 //not meant for outside use
+ property real __area: width * height * 0.5 // not meant for outside use
}
//! [0]