overte-HifiExperiments/interface/resources/qml/InfoView.qml
2016-04-25 20:19:54 -07:00

43 lines
792 B
QML

import QtQuick 2.5
import Hifi 1.0 as Hifi
import "controls"
import "windows" as Windows
Windows.Window {
id: root
width: 800
height: 800
resizable: true
Hifi.InfoView {
id: infoView
// Fill the client area
anchors.fill: parent
WebView {
id: webview
objectName: "WebView"
anchors.fill: parent
url: infoView.url
}
}
Component.onCompleted: {
//console.log("InfoView.Component.onCompleted");
centerWindow(root);
}
onVisibleChanged: {
if (visible) {
centerWindow(root);
}
}
function centerWindow() {
//console.log("InfoView.Component.centerWindow");
desktop.centerOnVisible(root);
}
}