making requested changes

This commit is contained in:
danteruiz 2019-02-08 10:03:05 -08:00
parent d71fb2a100
commit 76a56c679a
4 changed files with 4 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -58,6 +58,7 @@ Windows.ScrollingWindow {
Controls.WebView { Controls.WebView {
id: webview id: webview
url: "about:blank" url: "about:blank"
property string userScriptUrl: ""
anchors.fill: parent anchors.fill: parent
focus: true focus: true
} }

View file

@ -13,7 +13,7 @@ import QtWebEngine 1.5
AnimatedImage { AnimatedImage {
property WebEngineView webview: parent property WebEngineView webview: parent
source: "../../icons/loader-snake-64-w.gif" source: "qrc:////icons//loader-snake-64-w.gif"
visible: webview.loading && /^(http.*|)$/i.test(webview.url.toString()) visible: webview.loading && /^(http.*|)$/i.test(webview.url.toString())
playing: visible playing: visible
z: 10000 z: 10000

View file

@ -10,14 +10,14 @@
import QtQuick 2.5 import QtQuick 2.5
AnimatedImage { Image {
Item { Item {
id: webView id: webView
property bool loading: false property bool loading: false
property string url: "" property string url: ""
} }
source: "../../icons/loader-snake-64-w.gif" source: "qrc:////images//unsupportedImage.png"
visible: webview.loading && /^(http.*|)$/i.test(webview.url.toString()) visible: webview.loading && /^(http.*|)$/i.test(webview.url.toString())
playing: visible playing: visible
z: 10000 z: 10000