46 lines
989 B
QML
46 lines
989 B
QML
import QtQuick 2.5
|
|
import fbx.application 1.0
|
|
import "Components"
|
|
import "Shared"
|
|
import "Core"
|
|
|
|
Application {
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: Theme.background
|
|
}
|
|
|
|
Session {
|
|
id: appSession
|
|
}
|
|
|
|
Row {
|
|
anchors.fill: parent
|
|
|
|
Logo {
|
|
id: logo
|
|
width: parent.width / 3
|
|
height: parent.height
|
|
}
|
|
|
|
Navigator {
|
|
id: navigator
|
|
width: parent.width - logo.width
|
|
height: parent.height
|
|
session: appSession
|
|
focus: true
|
|
}
|
|
}
|
|
|
|
// Appelée par le runtime Freebox (ouverture de l'app via une URL / un lien profond).
|
|
// Pas encore utilisée : la déclarer évite l'avertissement au démarrage.
|
|
function handleUrl(url) {
|
|
console.log("handleUrl:", url);
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
navigator.push("ServerSelect");
|
|
appSession.loadDevConfig(Qt.resolvedUrl("dev-config.json"));
|
|
}
|
|
}
|