From 784548bb255f67dd307e54acd2ab8366c53585e5 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Thu, 12 Jan 2017 22:07:20 +0000 Subject: [PATCH] removed hud --- interface/resources/qml/hifi/Desktop.qml | 31 +----------------------- 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/interface/resources/qml/hifi/Desktop.qml b/interface/resources/qml/hifi/Desktop.qml index e20ecd70e1..4c81027211 100644 --- a/interface/resources/qml/hifi/Desktop.qml +++ b/interface/resources/qml/hifi/Desktop.qml @@ -48,14 +48,7 @@ OriginalDesktop.Desktop { // This used to create sysToolbar dynamically with a call to getToolbar() within onCompleted. // Beginning with QT 5.6, this stopped working, as anything added to toolbars too early got // wiped during startup. - Toolbar { - id: sysToolbar; - objectName: "com.highfidelity.interface.toolbar.system"; - anchors.horizontalCenter: settings.constrainToolbarToCenterX ? desktop.horizontalCenter : undefined; - // Literal 50 is overwritten by settings from previous session, and sysToolbar.x comes from settings when not constrained. - x: sysToolbar.x - y: 50 - } + Settings { id: settings; category: "toolbar"; @@ -65,7 +58,6 @@ OriginalDesktop.Desktop { settings.constrainToolbarToCenterX = constrain; } property var toolbars: (function (map) { // answer dictionary preloaded with sysToolbar - map[sysToolbar.objectName] = sysToolbar; return map; })({}); @@ -74,27 +66,6 @@ OriginalDesktop.Desktop { WebEngine.settings.javascriptCanAccessClipboard = false; WebEngine.settings.spatialNavigationEnabled = false; WebEngine.settings.localContentCanAccessRemoteUrls = true; - - [ // Allocate the standard buttons in the correct order. They will get images, etc., via scripts. - "hmdToggle", "mute", "pal", "bubble", "help", - "hudToggle", - "com.highfidelity.interface.system.editButton", "marketplace", "snapshot", "goto" - ].forEach(function (name) { - sysToolbar.addButton({objectName: name}); - }); - var toggleHudButton = sysToolbar.findButton("hudToggle"); - toggleHudButton.imageURL = "../../../icons/hud.svg"; - toggleHudButton.pinned = true; - sysToolbar.updatePinned(); // automatic when adding buttons only IFF button is pinned at creation. - - toggleHudButton.buttonState = Qt.binding(function(){ - return desktop.pinned ? 1 : 0 - }); - toggleHudButton.clicked.connect(function(){ - console.log("Clicked on hud button") - var overlayMenuItem = "Overlays" - MenuInterface.setIsOptionChecked(overlayMenuItem, !MenuInterface.isOptionChecked(overlayMenuItem)); - }); } // Accept a download through the webview