summaryrefslogtreecommitdiffstats
path: root/src/tools/moc/token.h
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.h
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.h')
-rw-r--r--src/tools/moc/token.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/moc/token.h b/src/tools/moc/token.h
index 6ca3d84..8b72eb6 100644
--- a/src/tools/moc/token.h
+++ b/src/tools/moc/token.h
@@ -186,6 +186,7 @@ enum Token {
Q_INVOKABLE_TOKEN,
Q_SCRIPTABLE_TOKEN,
Q_PRIVATE_PROPERTY_TOKEN,
+ Q_REVISION_TOKEN,
Q_META_TOKEN_END,
SPECIAL_TREATMENT_MARK = Q_META_TOKEN_END,
MOC_INCLUDE_BEGIN,