summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/token.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-12-06 04:23:47 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-01-05 03:15:43 (GMT)
commit3f80a24c5d375dd173d18c2a4227301f1afba2e3 (patch)
tree1d1a8ae2fb54082fa4e79a04263b44c6929d5f2a /src/tools/moc/token.cpp
parent086f33dd4c70be03adcbc1703997afa27add920b (diff)
downloadQt-3f80a24c5d375dd173d18c2a4227301f1afba2e3.zip
Qt-3f80a24c5d375dd173d18c2a4227301f1afba2e3.tar.gz
Qt-3f80a24c5d375dd173d18c2a4227301f1afba2e3.tar.bz2
Allow a revision to be associated with properties and methods.
Allows a revision to be associated with properties via: Q_PROPERTY(int prop READ prop1 REVISION 1) Allows a revision to be associated with methods via either: public slots Q_REVISION(1): void method1(); or: public slots: Q_REVISION void method1(); Private revision() methods are added to QMetaProperty and QMetaMethod to access the revision info. This is private API for use by QML for now. Task-number: QTBUG-13451 Reviewed-by: Kent Hansen
Diffstat (limited to 'src/tools/moc/token.cpp')
-rw-r--r--src/tools/moc/token.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/moc/token.cpp b/src/tools/moc/token.cpp
index 3da9446..27d5146 100644
--- a/src/tools/moc/token.cpp
+++ b/src/tools/moc/token.cpp
@@ -180,6 +180,7 @@ const char *tokenTypeName(Token t)
case Q_SLOT_TOKEN: return "Q_SLOT_TOKEN";
case Q_PRIVATE_SLOT_TOKEN: return "Q_PRIVATE_SLOT_TOKEN";
case Q_PRIVATE_PROPERTY_TOKEN: return "Q_PRIVATE_PROPERTY_TOKEN";
+ case Q_REVISION_TOKEN: return "Q_REVISION_TOKEN";
case SPECIAL_TREATMENT_MARK: return "SPECIAL_TREATMENT_MARK";
case MOC_INCLUDE_BEGIN: return "MOC_INCLUDE_BEGIN";
case MOC_INCLUDE_END: return "MOC_INCLUDE_END";