diff --git a/interface/resources/qml/InfoView.qml b/interface/resources/qml/InfoView.qml index 2e93c401d4..c5dba7e1f3 100644 --- a/interface/resources/qml/InfoView.qml +++ b/interface/resources/qml/InfoView.qml @@ -1,8 +1,18 @@ +// +// InfoView.qml +// +// Created by Bradley Austin Davis on 27 Apr 2015 +// Copyright 2015 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 QtQuick 2.5 import Hifi 1.0 as Hifi -import "controls" -import "windows" as Windows +import "controls-uit" +import "windows-uit" as Windows Windows.Window { id: root @@ -12,16 +22,16 @@ Windows.Window { Hifi.InfoView { id: infoView - // Fill the client area - anchors.fill: parent - + width: pane.contentWidth + implicitHeight: pane.scrollHeight + WebView { id: webview objectName: "WebView" anchors.fill: parent url: infoView.url } - } + } Component.onCompleted: { centerWindow(root); diff --git a/interface/resources/qml/QmlWebWindow.qml b/interface/resources/qml/QmlWebWindow.qml index 70c8afd298..ae052879db 100644 --- a/interface/resources/qml/QmlWebWindow.qml +++ b/interface/resources/qml/QmlWebWindow.qml @@ -1,11 +1,21 @@ -import QtQuick 2.3 -import QtQuick.Controls 1.2 +// +// QmlWebWindow.qml +// +// Created by Bradley Austin Davis on 17 Dec 2015 +// Copyright 2015 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 QtQuick 2.5 +import QtQuick.Controls 1.4 import QtWebEngine 1.1 import QtWebChannel 1.0 -import "windows" as Windows -import "controls" as Controls -import "styles" +import "windows-uit" as Windows +import "controls-uit" as Controls +import "styles-uit" Windows.Window { id: root @@ -29,11 +39,16 @@ Windows.Window { // missing signal signal sendToScript(var message); - Controls.WebView { - id: webview - url: "about:blank" - anchors.fill: parent - focus: true - webChannel.registeredObjects: [eventBridgeWrapper] + Item { + width: pane.contentWidth + implicitHeight: pane.scrollHeight + + Controls.WebView { + id: webview + url: "about:blank" + anchors.fill: parent + focus: true + webChannel.registeredObjects: [eventBridgeWrapper] + } } -} // dialog +} diff --git a/interface/resources/qml/controls-uit/WebView.qml b/interface/resources/qml/controls-uit/WebView.qml index 5ea4b22baf..e6005d5dcf 100644 --- a/interface/resources/qml/controls-uit/WebView.qml +++ b/interface/resources/qml/controls-uit/WebView.qml @@ -15,6 +15,8 @@ WebEngineView { id: root property var newUrl; + profile.httpUserAgent: "Mozilla/5.0 Chrome (HighFidelityInterface)" + Component.onCompleted: { console.log("Connecting JS messaging to Hifi Logging") // Ensure the JS from the web-engine makes it to our logging diff --git a/interface/resources/qml/dialogs/preferences/AvatarBrowser.qml b/interface/resources/qml/dialogs/preferences/AvatarBrowser.qml index cdeddb5886..e5bc9b80ef 100644 --- a/interface/resources/qml/dialogs/preferences/AvatarBrowser.qml +++ b/interface/resources/qml/dialogs/preferences/AvatarBrowser.qml @@ -1,10 +1,20 @@ +// +// AvatarBrowser.qml +// +// Created by Bradley Austin Davis on 30 Aug 2015 +// Copyright 2015 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 QtQuick 2.5 import QtQuick.Controls 1.4 import QtWebEngine 1.1 -import "../../windows" as Windows -import "../../controls" as Controls -import "../../styles" +import "../../windows-uit" as Windows +import "../../controls-uit" as Controls +import "../../styles-uit" Windows.Window { id: root @@ -14,20 +24,14 @@ Windows.Window { modality: Qt.ApplicationModal Item { - anchors.fill: parent + width: pane.contentWidth + implicitHeight: pane.scrollHeight Controls.WebView { id: webview - anchors { top: parent.top; left: parent.left; right: parent.right; bottom: closeButton.top; margins: 8 } + anchors.fill: parent url: "https://metaverse.highfidelity.com/marketplace?category=avatars" focus: true } - - Button { - id: closeButton - anchors { bottom: parent.bottom; right: parent.right; margins: 8 } - text: "Close" - onClicked: root.destroy(); - } } } diff --git a/scripts/system/directory.js b/scripts/system/directory.js index 881b25b771..2eae4fa9cf 100644 --- a/scripts/system/directory.js +++ b/scripts/system/directory.js @@ -17,7 +17,7 @@ var toolIconUrl = Script.resolvePath("assets/images/tools/"); var DIRECTORY_WINDOW_URL = "https://metaverse.highfidelity.com/directory"; var directoryWindow = new OverlayWebWindow({ - title: 'directory', + title: 'Directory', source: "about:blank", width: 900, height: 700,