mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
tablet cpp ownership
This commit is contained in:
parent
cbd2a532a8
commit
8cfa03fa56
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ void OffscreenUi::create(QOpenGLContext* context) {
|
|||
rootContext->setContextProperty("OffscreenUi", this);
|
||||
rootContext->setContextProperty("offscreenFlags", offscreenFlags = new OffscreenFlags());
|
||||
rootContext->setContextProperty("fileDialogHelper", new FileDialogHelper());
|
||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||
TabletProxy* tablet = tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system");
|
||||
rootContext->engine()->setObjectOwnership(tablet, QQmlEngine::CppOwnership);
|
||||
}
|
||||
|
||||
void OffscreenUi::show(const QUrl& url, const QString& name, std::function<void(QQmlContext*, QObject*)> f) {
|
||||
|
|
Loading…
Reference in a new issue