summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/codingconventions
diff options
context:
space:
mode:
authorAlan Alpert <aalpert@rim.com>2012-11-07 00:29:04 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-15 20:37:07 (GMT)
commit62d159e977b137402da17a0eb3866af958dc4fca (patch)
treed7314a60a1a48a09735865d99c2bcef86fa5b8f6 /doc/src/snippets/declarative/codingconventions
parent53301b322982a5df805588f3fd114b2eb5ccda71 (diff)
downloadQt-62d159e977b137402da17a0eb3866af958dc4fca.zip
Qt-62d159e977b137402da17a0eb3866af958dc4fca.tar.gz
Qt-62d159e977b137402da17a0eb3866af958dc4fca.tar.bz2
Fix code convention docs
The previously specified convention prevents change handlers from being created properly. Another convention is being suggested instead. Task-number: QTBUG-27852 Change-Id: I32a3f6f6c01e628457b30479505b32f1c5bbc92c Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
Diffstat (limited to 'doc/src/snippets/declarative/codingconventions')
-rw-r--r--doc/src/snippets/declarative/codingconventions/private.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/snippets/declarative/codingconventions/private.qml b/doc/src/snippets/declarative/codingconventions/private.qml
index 8375e33..168e5f2 100644
--- a/doc/src/snippets/declarative/codingconventions/private.qml
+++ b/doc/src/snippets/declarative/codingconventions/private.qml
@@ -44,6 +44,9 @@ import QtQuick 1.0
Item {
id: component
width: 40; height: 50
- property real __area: width * height * 0.5 //not meant for outside use
+ QtObject {
+ id: d
+ property real area: width * height * 0.5 //not meant for outside use
+ }
}
//! [0]