summaryrefslogtreecommitdiffstats
path: root/scriptrunner.cpp
diff options
context:
space:
mode:
authorJesper K. Pedersen <jesper.pedersen@kdab.com>2013-05-08 08:32:09 +0200
committerJesper K. Pedersen <jesper.pedersen@kdab.com>2013-05-13 10:17:11 +0200
commitf5448f89f28f6e3ffd252e2b7e26b302662aab45 (patch)
treeaed21c290c838dc273f0305d60451f303dc624c5 /scriptrunner.cpp
parent985b7197f051a1992554413b882a56eb0bd5b9a4 (diff)
Introduced the class Position
Using QPoint with x,y is very confusing on the scripting level, where the mental picture is line and columns rather than y,x Change-Id: I4d9353afa26879d9aa44436d56841f55a50723bd Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'scriptrunner.cpp')
-rw-r--r--scriptrunner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scriptrunner.cpp b/scriptrunner.cpp
index c75a90d..44a34fa 100644
--- a/scriptrunner.cpp
+++ b/scriptrunner.cpp
@@ -160,6 +160,8 @@ ScriptRunner::QScriptEnginePtr ScriptRunner::ensureEngineInitialized()
qRegisterMetaType<Mark*>("Mark*");
registerQObject<Mark>(m_engine.data());
+ qRegisterMetaType<Position>("Position");
+
qScriptRegisterSequenceMetaType< QList<CppArgument*> >(m_engine.data());
registerGlobal(new Console, QLatin1String("console"));