From 46b160101c7b5153635e0d6ab6a6c0ab0bc408d8 Mon Sep 17 00:00:00 2001 From: Godfrain Jacques Date: Fri, 1 Nov 2024 22:30:54 -0700 Subject: [PATCH] Revert "(chore) Use loaders" --- qml/main.qml | 66 +++++++++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 20ea96f..cc4c01d 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -28,55 +28,63 @@ ApplicationWindow { StackView { id: stackView anchors.fill: parent - initialItem: welcomeLoader.sourceComponent + initialItem: WelcomePage{ + theme: root.themeObject || "light" + } } - Loader { - id: welcomeLoader - sourceComponent: WelcomePage { - theme: root.themeObject || "light" + Component { + id: login + LoginPage{ } } - Loader { - id: loginLoader - sourceComponent: LoginPage {} + Component { + id: welcomePage + WelcomePage{ + } } - Loader { - id: sectionLoader - sourceComponent: SectionPage {} + Component { + id: sectionPage + SectionPage{ + } } - Loader { - id: practiceLoader - sourceComponent: PracticePage { + Component { + id: practicePage + PracticePage{ session: sessionObject.session } } - Loader { - id: reviewLoader - sourceComponent: ReviewPage {} + Component { + id: reviewPage + ReviewPage{ + } } - Loader { - id: statsLoader - sourceComponent: StatsPage {} + Component { + id: statsPage + StatsPage{ + } } - Loader { - id: aboutLoader - sourceComponent: AboutPage {} + Component { + id: aboutPage + AboutPage{ + } } - Loader { - id: categoryLoader - sourceComponent: CategoryPage {} + Component { + id: categoryPage + CategoryPage{ + } } - Loader { - id: settingsLoader - sourceComponent: SettingsPage {} + Component { + id: settingsPage + SettingsPage{ + } } }