summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmldom.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-05-11 08:10:23 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-05-11 08:18:05 (GMT)
commit205885831029730ee8faf28dcc7083806cfd5205 (patch)
tree565912a0f722ac54c52f065bb3791f637e12dc64 /src/declarative/qml/qmldom.h
parent4b474ca66f17d9c6a97fbfa521fcfeb68aa977e1 (diff)
downloadQt-205885831029730ee8faf28dcc7083806cfd5205.zip
Qt-205885831029730ee8faf28dcc7083806cfd5205.tar.gz
Qt-205885831029730ee8faf28dcc7083806cfd5205.tar.bz2
Added positioning information to the dom as position+length.
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/declarative/qml/qmldom.h')
-rw-r--r--src/declarative/qml/qmldom.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/qmldom.h b/src/declarative/qml/qmldom.h
index 8b503fa..04ce8b9 100644
--- a/src/declarative/qml/qmldom.h
+++ b/src/declarative/qml/qmldom.h
@@ -99,6 +99,9 @@ public:
QmlDomValue value() const;
void setValue(const QmlDomValue &);
+ int position() const;
+ int length() const;
+
private:
friend class QmlDomObject;
QSharedDataPointer<QmlDomPropertyPrivate> d;
@@ -134,6 +137,9 @@ public:
bool isComponent() const;
QmlDomComponent toComponent() const;
+ int position() const;
+ int length() const;
+
private:
friend class QmlDomDocument;
friend class QmlDomComponent;
@@ -236,6 +242,9 @@ public:
QmlDomObject toObject() const;
QmlDomList toList() const;
+ int position() const;
+ int length() const;
+
private:
friend class QmlDomProperty;
friend class QmlDomList;