summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-16 02:35:08 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-16 02:35:08 (GMT)
commit0dfe225df98a1b204e4a90bb8b1b66aefbe74d81 (patch)
tree07f168fdba33ff9a0407a2afca3066e5a7908150 /doc
parent24b0ad11174118e327a778bbdf16fa64a5eb640c (diff)
downloadQt-0dfe225df98a1b204e4a90bb8b1b66aefbe74d81.zip
Qt-0dfe225df98a1b204e4a90bb8b1b66aefbe74d81.tar.gz
Qt-0dfe225df98a1b204e4a90bb8b1b66aefbe74d81.tar.bz2
Add FINAL attribute to Q_PROPERTY()
This will be used by the declarative module to optimize property bindings.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/properties.qdoc5
-rw-r--r--doc/src/snippets/code/doc_src_properties.qdoc3
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/properties.qdoc b/doc/src/properties.qdoc
index 1aa41a9..b7f773a 100644
--- a/doc/src/properties.qdoc
+++ b/doc/src/properties.qdoc
@@ -128,6 +128,11 @@
constant value may be different for different instances of the object. A
constant property cannot have a \c WRITE method or a \c NOTIFY signal.
+ \o The presence of the \c FINAL attribute indicates that the property
+ will not be overridden by a derived class. This can be used for performance
+ optimizations in some cases, but is not enforced by moc. Care must be taken
+ never to override a \c FINAL property.
+
\endlist
The \c READ, \c WRITE, and \c RESET functions can be inherited.
diff --git a/doc/src/snippets/code/doc_src_properties.qdoc b/doc/src/snippets/code/doc_src_properties.qdoc
index 64e5377..3c9109f 100644
--- a/doc/src/snippets/code/doc_src_properties.qdoc
+++ b/doc/src/snippets/code/doc_src_properties.qdoc
@@ -8,7 +8,8 @@ Q_PROPERTY(type name
[SCRIPTABLE bool]
[STORED bool]
[USER bool]
- [CONSTANT])
+ [CONSTANT]
+ [FINAL])
//! [0]