summaryrefslogtreecommitdiff
path: root/src/quick/doc/snippets/qml/codingconventions
diff options
context:
space:
mode:
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]