baseUrl come Q_PROPERTY (accesso proprietà, niente Q_INVOKABLE) + log data di build in avvio

This commit is contained in:
2026-08-12 11:19:20 +02:00
parent 4afede7b92
commit dd5d35c439
6 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ Page {
function resolveUrl(u) {
if (u.indexOf("http://") === 0 || u.indexOf("https://") === 0)
return u
var base = appSettings.baseUrl()
var base = appSettings.baseUrl
return base + (u.charAt(0) === "/" ? u : "/" + u)
}
+1 -1
View File
@@ -72,7 +72,7 @@ Page {
}
function loadIndex() {
var base = appSettings.baseUrl()
var base = appSettings.baseUrl
if (base.length === 0) {
page.errorMessage = "Server non configurato"
return
+1 -1
View File
@@ -41,7 +41,7 @@ Page {
}
function search() {
var base = appSettings.baseUrl()
var base = appSettings.baseUrl
var query = searchField.text.trim()
if (base.length === 0 || query.length === 0)
return