aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype_p.h
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-06-22 15:32:46 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-27 02:28:40 +0200
commita93c2608d69fa385c675a6b49e4d4bfb97f83ed2 (patch)
tree88b9bc5b459600d85c6519995367669396787568 /src/qml/qml/qqmlmetatype_p.h
parenta2aa4705702256c15aaaf64e08b90c4749233f9d (diff)
Add enum values from related types
If moc marks a type as being related to another type (by using that type's enums or properties), then include the enum values exported by the related type in those exposed by the dependent type. Task-number: QTBUG-22675 Change-Id: I78e72791a4f470200a9ba986a865ffac6c873725 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlmetatype_p.h')
-rw-r--r--src/qml/qml/qqmlmetatype_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmetatype_p.h b/src/qml/qml/qqmlmetatype_p.h
index fbbc410c07..fbba733018 100644
--- a/src/qml/qml/qqmlmetatype_p.h
+++ b/src/qml/qml/qqmlmetatype_p.h
@@ -143,6 +143,7 @@ private:
static CompareFunction anchorLineCompareFunction;
};
+class QHashedCStringRef;
class QHashedV8String;
class Q_QML_PRIVATE_EXPORT QQmlType
{
@@ -191,8 +192,9 @@ public:
int index() const;
- int enumValue(const QHashedStringRef &) const;
- int enumValue(const QHashedV8String &) const;
+ int enumValue(const QHashedStringRef &, bool *ok) const;
+ int enumValue(const QHashedCStringRef &, bool *ok) const;
+ int enumValue(const QHashedV8String &, bool *ok) const;
private:
QQmlType *superType() const;
friend class QQmlTypePrivate;