diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-16 02:35:08 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-31 01:17:15 (GMT) |
commit | 7ebd2024f49bdaf798f0beaaa35946dfa890f276 (patch) | |
tree | f68cad7641b1f0aa6242acadb480a6cb6969002e /src/tools/moc/moc.h | |
parent | 29202f033c87b5efe305e606805a26c59886875b (diff) | |
download | Qt-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 'src/tools/moc/moc.h')
-rw-r--r-- | src/tools/moc/moc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/moc/moc.h b/src/tools/moc/moc.h index 494d53e..767f84e 100644 --- a/src/tools/moc/moc.h +++ b/src/tools/moc/moc.h @@ -115,10 +115,11 @@ struct FunctionDef struct PropertyDef { - PropertyDef():notifyId(-1), constant(false), gspec(ValueSpec){} + PropertyDef():notifyId(-1), constant(false), final(false), gspec(ValueSpec){} QByteArray name, type, read, write, reset, designable, scriptable, editable, stored, user, notify; int notifyId; bool constant; + bool final; enum Specification { ValueSpec, ReferenceSpec, PointerSpec }; Specification gspec; bool stdCppSet() const { |