Set up structure for Phase 5: ReaderPage and ComposePage placeholders, updated MailListPage and Shell for navigation to reader and composer

This commit is contained in:
Padrino
2026-05-17 02:28:15 +02:00
parent 822ed5db47
commit 99812bbf4c
4 changed files with 253 additions and 83 deletions
+24 -5
View File
@@ -81,11 +81,23 @@ ApplicationWindow {
}
}
// Main content area with StackView for pages
StackView {
id: stackView
anchors.fill: parent
initialItem: MailListPage {}
// Define pages
MailListPage {
id: mailListPage
onEmailSelected: {
stackView.push(readerPage, { "emailId": emailId })
}
onComposeRequested: {
stackView.push(composePage)
}
}
ReaderPage {
id: readerPage
}
ComposePage {
id: composePage
}
// Placeholder for other pages
@@ -99,6 +111,13 @@ ApplicationWindow {
id: settingsPage
}
// Main content area with StackView for pages
StackView {
id: stackView
anchors.fill: parent
initialItem: mailListPage
}
// Hamburger button to open drawer
MenuButton {
icon: "menu"