summaryrefslogtreecommitdiffstats
path: root/src/input/qinputaspect.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire.ecortex@kdab.com>2014-11-12 07:35:57 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-11-14 17:44:21 +0100
commitfa5b55ca17e233fdb5674c0652f60507af683975 (patch)
treeb0ae6b6e9f735ce4cccf4b1eebbf44f70ce8c8ae /src/input/qinputaspect.cpp
parent8bf14c405031baa650c687ffffa443ce772093e0 (diff)
Aspects: onInitialize now takes a QVariantMap
The QAspectEngine setSurface method was replaced by a setData method which takes a QVariantMap. This offers a way to specify different values that different aspects may be interested in. It is the responsibility of the Aspect subclass to check that the QVariantMap contains the necessary element when onInitialize is called. Change-Id: Ifcf5d2ee9e5fac7b0fe3c320c1415bcf55f1cf55 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/qinputaspect.cpp')
-rw-r--r--src/input/qinputaspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/qinputaspect.cpp b/src/input/qinputaspect.cpp
index 220cf6681..f448cddd5 100644
--- a/src/input/qinputaspect.cpp
+++ b/src/input/qinputaspect.cpp
@@ -72,7 +72,7 @@ void QInputAspect::setRootEntity(QEntity *rootObject)
}
-void QInputAspect::onInitialize(QSurface *surface)
+void QInputAspect::onInitialize(const QVariantMap &data)
{
}