mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge branch 'tablet-ui' of github.com:highfidelity/hifi into tablet-ui
This commit is contained in:
commit
1c62a80bc2
3 changed files with 6 additions and 3 deletions
|
@ -8,7 +8,6 @@ Item {
|
||||||
objectName: "tabletRoot"
|
objectName: "tabletRoot"
|
||||||
property string username: "Unknown user"
|
property string username: "Unknown user"
|
||||||
property var eventBridge;
|
property var eventBridge;
|
||||||
|
|
||||||
property var rootMenu;
|
property var rootMenu;
|
||||||
property var openModal: null;
|
property var openModal: null;
|
||||||
property var openMessage: null;
|
property var openMessage: null;
|
||||||
|
|
|
@ -5848,10 +5848,14 @@ void Application::showDialog(const QString& desktopURL, const QString& tabletURL
|
||||||
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
|
||||||
auto tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
auto tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
|
||||||
auto hmd = DependencyManager::get<HMDScriptingInterface>();
|
auto hmd = DependencyManager::get<HMDScriptingInterface>();
|
||||||
if (tablet->getToolbarMode() || (!hmd->getShouldShowTablet() && !isHMDMode())) {
|
if (tablet->getToolbarMode()) {
|
||||||
DependencyManager::get<OffscreenUi>()->show(desktopURL, name);
|
DependencyManager::get<OffscreenUi>()->show(desktopURL, name);
|
||||||
} else {
|
} else {
|
||||||
tablet->pushOntoStack(tabletURL);
|
tablet->pushOntoStack(tabletURL);
|
||||||
|
if (!hmd->getShouldShowTablet() && !isHMDMode()) {
|
||||||
|
hmd->openTablet();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -358,7 +358,7 @@ void TabletProxy::pushOntoStack(const QVariant& path) {
|
||||||
if (stack) {
|
if (stack) {
|
||||||
QMetaObject::invokeMethod(stack, "pushSource", Q_ARG(const QVariant&, path));
|
QMetaObject::invokeMethod(stack, "pushSource", Q_ARG(const QVariant&, path));
|
||||||
} else {
|
} else {
|
||||||
qCDebug(scriptengine) << "tablet cannot push QML because _qmlTabletRoot doesn't have child stack";
|
loadQMLSource(path);
|
||||||
}
|
}
|
||||||
} else if (_desktopWindow) {
|
} else if (_desktopWindow) {
|
||||||
auto stack = _desktopWindow->asQuickItem()->findChild<QQuickItem*>("stack");
|
auto stack = _desktopWindow->asQuickItem()->findChild<QQuickItem*>("stack");
|
||||||
|
|
Loading…
Reference in a new issue