mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Fix a couple of QML errors
This commit is contained in:
parent
a75925d1e3
commit
2343e02454
2 changed files with 4 additions and 2 deletions
|
@ -133,7 +133,6 @@ Window {
|
|||
// Optional non-scrolling footer.
|
||||
id: footerPane
|
||||
|
||||
// @@@@@@@ TODO: Are these aliases actually needed?
|
||||
property alias keyboardOverride: window.keyboardOverride
|
||||
property alias keyboardRaised: window.keyboardRaised
|
||||
property alias punctuationMode: window.punctuationMode
|
||||
|
@ -212,6 +211,8 @@ Window {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
keyboardEnabled = HMD.active;
|
||||
if (typeof HMD !== "undefined") {
|
||||
keyboardEnabled = HMD.active;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -309,6 +309,7 @@ void OffscreenQmlSurface::create(QOpenGLContext* shareContext) {
|
|||
}
|
||||
|
||||
// FIXME
|
||||
_glData = ::getGLContextData(); // Initialize JSON structure so that it can be filled in later and then used in QML.
|
||||
_qmlEngine->rootContext()->setContextProperty("GL", _glData);
|
||||
_qmlEngine->rootContext()->setContextProperty("offscreenWindow", QVariant::fromValue(getWindow()));
|
||||
_qmlComponent = new QQmlComponent(_qmlEngine);
|
||||
|
|
Loading…
Reference in a new issue