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-31 01:17:15 (GMT)
commit7ebd2024f49bdaf798f0beaaa35946dfa890f276 (patch)
treef68cad7641b1f0aa6242acadb480a6cb6969002e /doc
parent29202f033c87b5efe305e606805a26c59886875b (diff)
downloadQt-7ebd2024f49bdaf798f0beaaa35946dfa890f276.zip
Qt-7ebd2024f49bdaf798f0beaaa35946dfa890f276.tar.gz
Qt-7ebd2024f49bdaf798f0beaaa35946dfa890f276.tar.bz2
Add FINAL attribute to Q_PROPERTY()
This will be used by the declarative module to optimize property bindings. Reviewed-by: Roberto Raggi
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 cac5016..2d03e91 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 WRTE method or a 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]