summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeitem.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-03-04 23:46:34 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-03-04 23:46:34 (GMT)
commit81952293be3328dc2f62f557478042d1e8d04e0d (patch)
treef1d12875e61e6a530bb0f3abfde1e8e07203780c /src/declarative/graphicsitems/qdeclarativeitem.h
parent564baee7e729f1c6f766cecabc4fcc62291e0d0f (diff)
downloadQt-81952293be3328dc2f62f557478042d1e8d04e0d.zip
Qt-81952293be3328dc2f62f557478042d1e8d04e0d.tar.gz
Qt-81952293be3328dc2f62f557478042d1e8d04e0d.tar.bz2
Add mapFromItem() and mapToItem() in QDeclarativeItem.
Task-number: QT-2385
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeitem.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.h b/src/declarative/graphicsitems/qdeclarativeitem.h
index 3ae404d..f6fedc7 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem.h
+++ b/src/declarative/graphicsitems/qdeclarativeitem.h
@@ -159,6 +159,9 @@ public:
bool keepMouseGrab() const;
void setKeepMouseGrab(bool);
+ Q_INVOKABLE QScriptValue mapFromItem(const QScriptValue &item, int x, int y) const;
+ Q_INVOKABLE QScriptValue mapToItem(const QScriptValue &item, int x, int y) const;
+
QDeclarativeAnchorLine left() const;
QDeclarativeAnchorLine right() const;
QDeclarativeAnchorLine horizontalCenter() const;