From 224b3d63e32abe39a411978e3a53ceb9c1533e5a Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Wed, 23 Oct 2019 17:09:13 +0200 Subject: [PATCH] Add ThreeJSScene and --- ScreenPlayWallpaper/mainWindow.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ScreenPlayWallpaper/mainWindow.qml b/ScreenPlayWallpaper/mainWindow.qml index a8b11a2a..7236f7ab 100644 --- a/ScreenPlayWallpaper/mainWindow.qml +++ b/ScreenPlayWallpaper/mainWindow.qml @@ -26,10 +26,8 @@ Rectangle { switch (window.type) { case Wallpaper.WallpaperType.Video: - webView.url = Qt.resolvedUrl(window.getApplicationPath( - ) + "/index.html") + webView.url = Qt.resolvedUrl(window.getApplicationPath() + "/index.html") webView.enabled = true - break case Wallpaper.WallpaperType.Html: webView.enabled = true @@ -37,6 +35,7 @@ Rectangle { break case Wallpaper.WallpaperType.ThreeJSScene: webView.enabled = true + webView.url = Qt.resolvedUrl(window.fullContentPath) break case Wallpaper.WallpaperType.Qml: loader.enabled = true @@ -87,6 +86,9 @@ Rectangle { onLoadProgressChanged: { if (loadProgress === 100) { + // TODO 30: + // Currently wont work. Commit anyways til QtCreator and Qt work with js template literals + var src = "" src += "var videoPlayer = document.getElementById('videoPlayer');" src += "var videoSource = document.getElementById('videoSource');"