Revert "Enable QML Type Compiler", implement YouAds component
This commit is contained in:
27
QYRComponents/YouAds.qml
Normal file
27
QYRComponents/YouAds.qml
Normal 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user