summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/generator.cpp
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 /src/tools/moc/generator.cpp
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 'src/tools/moc/generator.cpp')
-rw-r--r--src/tools/moc/generator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp
index 328717c..990d20a 100644
--- a/src/tools/moc/generator.cpp
+++ b/src/tools/moc/generator.cpp
@@ -68,7 +68,8 @@ enum PropertyFlags {
ResolveUser = 0x00200000,
Notify = 0x00400000,
Dynamic = 0x00800000,
- Constant = 0x00000400
+ Constant = 0x00000400,
+ Final = 0x00000800
};
enum MethodFlags {
AccessPrivate = 0x00,
@@ -604,6 +605,8 @@ void Generator::generateProperties()
if (p.constant)
flags |= Constant;
+ if (p.final)
+ flags |= Final;
fprintf(out, " %4d, %4d, ",
strreg(p.name),