mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 01:36:20 +02:00
27 lines
651 B
QML
27 lines
651 B
QML
//
|
|
// Web3DOverlay.qml
|
|
//
|
|
// Created by David Rowe on 16 Dec 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 QtQuick.Controls 1.4
|
|
|
|
import "controls" as Controls
|
|
|
|
Controls.WebView {
|
|
|
|
function onWebEventReceived(event) {
|
|
if (event.slice(0, 17) === "CLARA.IO DOWNLOAD") {
|
|
ApplicationInterface.addAssetToWorldFromURL(event.slice(18));
|
|
}
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
eventBridge.webEventReceived.connect(onWebEventReceived);
|
|
}
|
|
}
|