summaryrefslogtreecommitdiffstats
path: root/examples/shadow-map-qml/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shadow-map-qml/main.cpp')
-rw-r--r--examples/shadow-map-qml/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shadow-map-qml/main.cpp b/examples/shadow-map-qml/main.cpp
index b3b6af159..ce4cadd5b 100644
--- a/examples/shadow-map-qml/main.cpp
+++ b/examples/shadow-map-qml/main.cpp
@@ -65,7 +65,7 @@ int main(int argc, char* argv[])
engine.aspectEngine()->initialize();
QVariantMap data;
data.insert(QStringLiteral("surface"), QVariant::fromValue(static_cast<QSurface *>(&view)));
- data.insert(QStringLiteral("window"), QVariant::fromValue(&view));
+ data.insert(QStringLiteral("eventSource"), QVariant::fromValue(&view));
engine.aspectEngine()->setData(data);
engine.qmlEngine()->rootContext()->setContextProperty("_window", &view);
engine.setSource(QUrl("qrc:/main.qml"));