Files
nearby/sharing/linux/app/main.qml
T

38 lines
763 B
QML

import QtQuick
import QtQuick.Window
Window {
id: root
width: 640
height: 480
visible: true
title: qsTr("QuickShare")
color: "#DCF5FF"
onClosing: function(close) {
if (appController.closeToTray) {
close.accepted = false
root.hide()
}
}
FontLoader {
id: googlesans
source: "qrc:/googlesans_var.ttf"
}
Loader {
id: contentLoader
anchors.fill: parent
source: "AppContent.qml"
}
function reloadInnerContent() {
const nextSource = "AppContent.qml?rev=" + Date.now()
contentLoader.active = false
contentLoader.source = ""
contentLoader.active = true
contentLoader.source = nextSource
}
}