summaryrefslogtreecommitdiff
path: root/src/quick/doc/snippets/qml/codingconventions/photo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/doc/snippets/qml/codingconventions/photo.qml')
-rw-r--r--src/quick/doc/snippets/qml/codingconventions/photo.qml10
1 files changed, 5 insertions, 5 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