summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmldom.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-11 12:14:50 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-11 12:14:50 (GMT)
commit61f8c6f4d6af1a2e73c918b43da8f25871b254b7 (patch)
tree39e472b03d3d6c642ad6723851717609ce017c3c /src/declarative/qml/qmldom.cpp
parentedadc4df70324d3c4a875795d0032e129206f44b (diff)
downloadQt-61f8c6f4d6af1a2e73c918b43da8f25871b254b7.zip
Qt-61f8c6f4d6af1a2e73c918b43da8f25871b254b7.tar.gz
Qt-61f8c6f4d6af1a2e73c918b43da8f25871b254b7.tar.bz2
Remove some XML'isms from the parser/compiler interface
Diffstat (limited to 'src/declarative/qml/qmldom.cpp')
-rw-r--r--src/declarative/qml/qmldom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmldom.cpp b/src/declarative/qml/qmldom.cpp
index 4e754a3..09b4a3b 100644
--- a/src/declarative/qml/qmldom.cpp
+++ b/src/declarative/qml/qmldom.cpp
@@ -809,7 +809,7 @@ Rect { x: 10 }
*/
QString QmlDomValueLiteral::literal() const
{
- if (d->value) return d->value->primitive;
+ if (d->value) return d->value->primitive();
else return QString();
}
@@ -878,7 +878,7 @@ Rect { x: Other.x }
QString QmlDomValueBinding::binding() const
{
if (d->value)
- return d->value->primitive.mid(1, d->value->primitive.length() - 2);
+ return d->value->value.asScript();
else
return QString();
}