-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.qml
More file actions
25 lines (24 loc) · 765 Bytes
/
Copy pathMain.qml
File metadata and controls
25 lines (24 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
ApplicationWindow {
width: 480
height: 640
visible: true
title: qsTr("YACReader Client")
Loader {
anchors.fill: parent
source: {
if (AppController.connectionState !== AppController.Connected) return "ConnectServerPage.qml"
if (AppController.selectedLibraryId === -1) return "LibrarySelectionPage.qml"
if (AppController.selectedComicId === "") return "ComicSelectionPage.qml"
return "ComicOverviewPage.qml"
}
}
// before figure out how to handle back button on Android...
onClosing: function(close) {
if (Qt.platform.os === "android") {
close.accepted = false;
}
}
}