mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 18:02:13 +02:00
new smaller WebView.qml
This commit is contained in:
parent
564769f7d3
commit
8824507523
1 changed files with 20 additions and 0 deletions
20
interface/resources/qml/controls-uit/WebView.qml
Normal file
20
interface/resources/qml/controls-uit/WebView.qml
Normal file
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// WebView.qml
|
||||
//
|
||||
// Created by Bradley Austin Davis on 12 Jan 2016
|
||||
// Copyright 2016 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 "."
|
||||
|
||||
BaseWebView {
|
||||
onNewViewRequested: {
|
||||
var component = Qt.createComponent("../Browser.qml");
|
||||
var newWindow = component.createObject(desktop);
|
||||
request.openIn(newWindow.webView)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue