summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlmetaproperty_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-23 01:21:54 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-23 01:21:54 (GMT)
commit6f43de5c1173277465f13eed9e904928a54bb9fc (patch)
tree07f0d2f511334ae4e9abc878fd72a062a295a7dd /src/declarative/qml/qmlmetaproperty_p.h
parent84aaee9b4514f70bf0abfd11e9b4fd3c66ceb1f1 (diff)
downloadQt-6f43de5c1173277465f13eed9e904928a54bb9fc.zip
Qt-6f43de5c1173277465f13eed9e904928a54bb9fc.tar.gz
Qt-6f43de5c1173277465f13eed9e904928a54bb9fc.tar.bz2
Add prototype value type support
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty_p.h')
-rw-r--r--src/declarative/qml/qmlmetaproperty_p.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/declarative/qml/qmlmetaproperty_p.h b/src/declarative/qml/qmlmetaproperty_p.h
index 69fd5c3..7efdb6e 100644
--- a/src/declarative/qml/qmlmetaproperty_p.h
+++ b/src/declarative/qml/qmlmetaproperty_p.h
@@ -62,18 +62,22 @@ class QmlMetaPropertyPrivate
{
public:
QmlMetaPropertyPrivate()
- : context(0), coreIdx(-1), type(QmlMetaProperty::Invalid), attachedFunc(-1),
+ : context(0), coreIdx(-1), valueTypeIdx(-1), valueTypeId(0),
+ type(QmlMetaProperty::Invalid), attachedFunc(-1),
object(0), propType(-1), category(QmlMetaProperty::Unknown) {}
QmlMetaPropertyPrivate(const QmlMetaPropertyPrivate &other)
: name(other.name), signal(other.signal), context(other.context),
- coreIdx(other.coreIdx), type(other.type), attachedFunc(other.attachedFunc),
- object(other.object), propType(other.propType),
- category(other.category) {}
+ coreIdx(other.coreIdx), valueTypeIdx(other.valueTypeIdx),
+ valueTypeId(other.valueTypeId), type(other.type),
+ attachedFunc(other.attachedFunc), object(other.object),
+ propType(other.propType), category(other.category) {}
QString name;
QMetaMethod signal;
QmlContext *context;
int coreIdx;
+ int valueTypeIdx;
+ int valueTypeId;
uint type;
int attachedFunc;
QObject *object;
@@ -89,6 +93,9 @@ public:
void writeSignalProperty(const QVariant &);
void writeValueProperty(const QVariant &);
+
+ static quint32 saveValueType(int, int);
+ static quint32 saveProperty(int);
};
QT_END_NAMESPACE