mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:58:07 +02:00
Move graphics settings to dedicated dialog
This commit is contained in:
parent
99e9b3ecdd
commit
5eeaa9a33e
3 changed files with 26 additions and 1 deletions
|
@ -7,7 +7,7 @@ PreferencesDialog {
|
||||||
id: root
|
id: root
|
||||||
objectName: "GeneralPreferencesDialog"
|
objectName: "GeneralPreferencesDialog"
|
||||||
title: "General Preferences"
|
title: "General Preferences"
|
||||||
showCategories: ["Snapshots", "Scripts", "Privacy", "Octree", "HMD", "Sixense Controllers", "Graphics"]
|
showCategories: ["Snapshots", "Scripts", "Privacy", "Octree", "HMD", "Sixense Controllers"]
|
||||||
property var settings: Settings {
|
property var settings: Settings {
|
||||||
category: root.objectName
|
category: root.objectName
|
||||||
property alias x: root.x
|
property alias x: root.x
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
import QtQuick 2.5
|
||||||
|
import Qt.labs.settings 1.0
|
||||||
|
|
||||||
|
import "../../dialogs"
|
||||||
|
|
||||||
|
PreferencesDialog {
|
||||||
|
id: root
|
||||||
|
objectName: "GraphicsPreferencesDialog"
|
||||||
|
title: "Graphics Preferences"
|
||||||
|
showCategories: ["Graphics"]
|
||||||
|
property var settings: Settings {
|
||||||
|
category: root.objectName
|
||||||
|
property alias x: root.x
|
||||||
|
property alias y: root.y
|
||||||
|
property alias width: root.width
|
||||||
|
property alias height: root.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -312,6 +312,12 @@ Menu::Menu() {
|
||||||
DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/AudioPreferencesDialog.qml"), "AudioPreferencesDialog");
|
DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/AudioPreferencesDialog.qml"), "AudioPreferencesDialog");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Settings > Graphics...
|
||||||
|
action = addActionToQMenuAndActionHash(settingsMenu, "Graphics...");
|
||||||
|
connect(action, &QAction::triggered, [] {
|
||||||
|
DependencyManager::get<OffscreenUi>()->toggle(QString("hifi/dialogs/GraphicsPreferencesDialog.qml"), "GraphicsPreferencesDialog");
|
||||||
|
});
|
||||||
|
|
||||||
// Settings > LOD...-- FIXME: needs implementation
|
// Settings > LOD...-- FIXME: needs implementation
|
||||||
action = addActionToQMenuAndActionHash(settingsMenu, "LOD...");
|
action = addActionToQMenuAndActionHash(settingsMenu, "LOD...");
|
||||||
connect(action, &QAction::triggered, [] {
|
connect(action, &QAction::triggered, [] {
|
||||||
|
|
Loading…
Reference in a new issue