From 48cdd6d64c5d52b7c9f2c93e4fc8bbfb7b341602 Mon Sep 17 00:00:00 2001 From: Gabriel Calero Date: Tue, 26 Jun 2018 12:30:03 -0300 Subject: [PATCH] Fix web entities for android --- .../qml/controls/+android/WebEntityView.qml | 36 +++++++++++++++++++ scripts/system/+android/clickWeb.js | 4 +-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 interface/resources/qml/controls/+android/WebEntityView.qml diff --git a/interface/resources/qml/controls/+android/WebEntityView.qml b/interface/resources/qml/controls/+android/WebEntityView.qml new file mode 100644 index 0000000000..7b2677003c --- /dev/null +++ b/interface/resources/qml/controls/+android/WebEntityView.qml @@ -0,0 +1,36 @@ +// +// WebEntityView.qml +// +// Created by Gabriel Calero & Cristian Duarte on Jun 25, 2018 +// 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 + + +Item { + + property string url + + Text { + id: webContentText + anchors.horizontalCenter : parent.horizontalCenter + text: "Web content\nClick to view" + font.family: "Helvetica" + font.pointSize: 24 + color: "#0098CA" + } + + Text { + id: urlText + text: url + anchors.horizontalCenter : parent.horizontalCenter + anchors.top : webContentText.bottom + font.family: "Helvetica" + font.pointSize: 18 + color: "#0098CA" + } +} diff --git a/scripts/system/+android/clickWeb.js b/scripts/system/+android/clickWeb.js index 7fd4d95226..92ae67ec76 100644 --- a/scripts/system/+android/clickWeb.js +++ b/scripts/system/+android/clickWeb.js @@ -1,6 +1,6 @@ "use strict"; // -// clickOverlays.js +// clickWeb.js // scripts/system/+android // // Created by Gabriel Calero & Cristian Duarte on Jun 22, 2018 @@ -18,7 +18,7 @@ var touchEntityID; function printd(str) { if (logEnabled) - print("[clickOverlays.js] " + str); + print("[clickWeb.js] " + str); }