mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-11-07 04:52:15 +00:00
chore: configure pyside6-project
This commit is contained in:
22
ui/qmls/404.qml
Normal file
22
ui/qmls/404.qml
Normal file
@ -0,0 +1,22 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Page {
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
width: parent.width
|
||||
|
||||
Label {
|
||||
width: parent.width
|
||||
text: '?'
|
||||
font.pointSize: 50
|
||||
horizontalAlignment: Qt.AlignCenter
|
||||
}
|
||||
|
||||
Label {
|
||||
width: parent.width
|
||||
text: 'Placeholder page'
|
||||
horizontalAlignment: Qt.AlignCenter
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,3 +1,4 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
@ -31,6 +32,7 @@ RowLayout {
|
||||
focus: true
|
||||
|
||||
delegate: Item {
|
||||
id: navListItem
|
||||
required property int index
|
||||
required property string label
|
||||
width: parent.width
|
||||
@ -39,7 +41,7 @@ RowLayout {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: () => {
|
||||
navListView.currentIndex = index;
|
||||
navListView.currentIndex = navListItem.index;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -6,14 +6,11 @@ import internal.ui.vm 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
property var b30: vm.b30
|
||||
|
||||
property alias b30: vm.b30
|
||||
|
||||
OverviewViewModel {
|
||||
id: vm
|
||||
|
||||
onB30Changed: {
|
||||
root.b30 = vm.b30;
|
||||
}
|
||||
}
|
||||
|
||||
component Display: RowLayout {
|
||||
|
||||
Reference in New Issue
Block a user