Revert "Enable QML Type Compiler", implement YouAds component

This commit is contained in:
Dark Steveneq
2025-10-12 15:52:26 +02:00
parent ef675152c3
commit 5811933326
4 changed files with 43 additions and 11 deletions

27
QYRComponents/YouAds.qml Normal file
View File

@@ -0,0 +1,27 @@
import QtQuick 6.8
import QtWebView 6.8
WebView {
implicitWidth: 600
implicitHeight: 150
visible: false
url: "https://youads.nonamesoft.xyz/ads/site"
settings.allowFileAccess: false
settings.javaScriptEnabled: false
settings.localContentCanAccessFileUrls: false
settings.localStorageEnabled: false
onLoadingChanged: function(loadRequest) {
visible = loadRequest.status == WebView.LoadSucceededStatus
}
Timer {
interval: 30 * 60 * 60
running: true
repeat: true
onTriggered: function() {
parent.reload()
}
}
}