Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "(chore) Use loaders" #92

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 37 additions & 29 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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{
}
}
}
Loading