67 lines
1.6 KiB
QML
67 lines
1.6 KiB
QML
|
import QtQuick
|
||
|
import QtQuick.Window
|
||
|
import QtQuick.Controls
|
||
|
import QtQuick.Controls.Material
|
||
|
|
||
|
ApplicationWindow {
|
||
|
width: Screen.width/2
|
||
|
height: Screen.height/2
|
||
|
visible: true
|
||
|
title: "Scorganizr"
|
||
|
|
||
|
Material.theme: Material.System
|
||
|
Material.accent: Material.Pink
|
||
|
|
||
|
Page {
|
||
|
id: window
|
||
|
anchors.fill: parent
|
||
|
|
||
|
Keys.onPressed: (event)=> {
|
||
|
if (event.key === Qt.Key_1) tabBar.currentIndex = 0;
|
||
|
if (event.key === Qt.Key_2) tabBar.currentIndex = 1;
|
||
|
if (event.key === Qt.Key_3) tabBar.currentIndex = 2;
|
||
|
if (event.key === Qt.Key_4) tabBar.currentIndex = 3;
|
||
|
if (event.key === Qt.Key_5) tabBar.currentIndex = 4;
|
||
|
}
|
||
|
focus: true
|
||
|
|
||
|
SwipeView {
|
||
|
id: swipeView
|
||
|
anchors.fill: parent
|
||
|
currentIndex: tabBar.currentIndex
|
||
|
|
||
|
Repeater {
|
||
|
model: 5
|
||
|
|
||
|
Pane {
|
||
|
width: SwipeView.view.width
|
||
|
height: SwipeView.view.height
|
||
|
|
||
|
SiteInConstruction {}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
footer: TabBar {
|
||
|
id: tabBar
|
||
|
currentIndex: swipeView.currentIndex
|
||
|
|
||
|
TabButton {
|
||
|
text: qsTr("Notes")
|
||
|
}
|
||
|
TabButton {
|
||
|
text: qsTr("Grades")
|
||
|
}
|
||
|
TabButton {
|
||
|
text: qsTr("Tasks")
|
||
|
}
|
||
|
TabButton {
|
||
|
text: qsTr("Calendar")
|
||
|
}
|
||
|
TabButton {
|
||
|
text: qsTr("Learn")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|