mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
Add LOD settings to Tablet UI
This commit is contained in:
parent
2cc723762c
commit
9f7c5a1603
2 changed files with 36 additions and 1 deletions
34
interface/resources/qml/hifi/tablet/TabletLodPreferences.qml
Normal file
34
interface/resources/qml/hifi/tablet/TabletLodPreferences.qml
Normal file
|
@ -0,0 +1,34 @@
|
|||
import QtQuick 2.5
|
||||
import Qt.labs.settings 1.0
|
||||
|
||||
import "tabletWindows"
|
||||
import "../../dialogs"
|
||||
import QtQuick.Controls 1.4
|
||||
import QtQuick.Controls.Styles 1.4
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
StackView {
|
||||
id: profileRoot
|
||||
initialItem: root
|
||||
objectName: "stack"
|
||||
|
||||
property var eventBridge;
|
||||
signal sendToScript(var message);
|
||||
|
||||
function pushSource(path) {
|
||||
editRoot.push(Qt.reslovedUrl(path));
|
||||
}
|
||||
|
||||
function popSource() {
|
||||
|
||||
}
|
||||
|
||||
TabletPreferencesDialog {
|
||||
id: root
|
||||
property string title: "LOD Settings"
|
||||
objectName: "TabletLodPreferences"
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
showCategories: ["Level of Detail Tuning"]
|
||||
}
|
||||
}
|
|
@ -308,7 +308,8 @@ Menu::Menu() {
|
|||
// Settings > LOD...
|
||||
action = addActionToQMenuAndActionHash(settingsMenu, "LOD...");
|
||||
connect(action, &QAction::triggered, [] {
|
||||
DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/LodPreferencesDialog.qml"), "LodPreferencesDialog");
|
||||
qApp->showDialog(QString("hifi/dialogs/LodPreferencesDialog.qml"),
|
||||
QString("../../hifi/tablet/TabletLodPreferences.qml"), "LodPreferencesDialog");
|
||||
});
|
||||
|
||||
// Settings > Control with Speech [advanced]
|
||||
|
|
Loading…
Reference in a new issue