mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:01:18 +02:00
show up audio screen using Settings > Audio
This commit is contained in:
parent
840f3a3a2e
commit
db22fa9eec
2 changed files with 7 additions and 30 deletions
|
@ -1,27 +0,0 @@
|
||||||
//
|
|
||||||
// Audio.qml
|
|
||||||
//
|
|
||||||
// Created by Zach Pomerantz on 6/12/2017
|
|
||||||
// Copyright 2017 High Fidelity, Inc.
|
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
||||||
//
|
|
||||||
|
|
||||||
import "../../windows"
|
|
||||||
import "../audio"
|
|
||||||
|
|
||||||
ScrollingWindow {
|
|
||||||
id: root;
|
|
||||||
|
|
||||||
resizable: true;
|
|
||||||
destroyOnHidden: true;
|
|
||||||
width: 400;
|
|
||||||
height: 577;
|
|
||||||
minSize: Qt.vector2d(400, 500);
|
|
||||||
|
|
||||||
Audio { id: audio; width: root.width }
|
|
||||||
|
|
||||||
objectName: "AudioDialog";
|
|
||||||
title: audio.title;
|
|
||||||
}
|
|
|
@ -270,10 +270,14 @@ Menu::Menu() {
|
||||||
// Settings > Audio...
|
// Settings > Audio...
|
||||||
action = addActionToQMenuAndActionHash(settingsMenu, "Audio...");
|
action = addActionToQMenuAndActionHash(settingsMenu, "Audio...");
|
||||||
connect(action, &QAction::triggered, [] {
|
connect(action, &QAction::triggered, [] {
|
||||||
static const QUrl widgetUrl("hifi/dialogs/Audio.qml");
|
|
||||||
static const QUrl tabletUrl("hifi/audio/Audio.qml");
|
static const QUrl tabletUrl("hifi/audio/Audio.qml");
|
||||||
static const QString name("AudioDialog");
|
auto tablet = DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system");
|
||||||
qApp->showDialog(widgetUrl, tabletUrl, name);
|
auto hmd = DependencyManager::get<HMDScriptingInterface>();
|
||||||
|
tablet->pushOntoStack(tabletUrl);
|
||||||
|
|
||||||
|
if (!hmd->getShouldShowTablet()) {
|
||||||
|
hmd->toggleShouldShowTablet();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Settings > Graphics...
|
// Settings > Graphics...
|
||||||
|
|
Loading…
Reference in a new issue