mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
38 lines
763 B
QML
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
|
|
}
|
|
}
|