diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-12-06 04:23:47 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-01-05 03:15:43 (GMT) |
commit | 3f80a24c5d375dd173d18c2a4227301f1afba2e3 (patch) | |
tree | 1d1a8ae2fb54082fa4e79a04263b44c6929d5f2a /src/tools/moc/token.h | |
parent | 086f33dd4c70be03adcbc1703997afa27add920b (diff) | |
download | Qt-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.h | 1 |
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, |