aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/mail/MailPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/mail/MailPage.qml')
-rw-r--r--desktop/modules/mail/MailPage.qml17
1 files changed, 15 insertions, 2 deletions
diff --git a/desktop/modules/mail/MailPage.qml b/desktop/modules/mail/MailPage.qml
index 85b0876..1b41412 100644
--- a/desktop/modules/mail/MailPage.qml
+++ b/desktop/modules/mail/MailPage.qml
@@ -97,6 +97,7 @@ Column {
model: Accounts.accounts
Column {
+ id: account
required property var modelData
width: page.width
spacing: 4
@@ -105,6 +106,12 @@ Column {
width: parent.width
implicitHeight: 26
+ MouseArea {
+ anchors.fill: parent
+ cursorShape: Qt.PointingHandCursor
+ onClicked: { Accounts.open(modelData.key); page.close(); }
+ }
+
Rectangle {
id: dot
anchors.verticalCenter: parent.verticalCenter
@@ -132,12 +139,13 @@ Column {
}
}
- // The newest three unread threads. Read-only: qtmaildir takes no
- // arguments, so there is no way to ask it for a particular thread.
+ // The newest three unread threads. A click opens the thread's
+ // newest unread message, in this account.
Repeater {
model: modelData.threads
Column {
+ id: row
required property var modelData
width: page.width - 18
x: 18
@@ -177,6 +185,11 @@ Column {
font.family: Theme.fontFamily
font.pixelSize: Theme.fontSize - 2
}
+
+ // Handlers, not a MouseArea: a Column would lay one out
+ // as a row of its own rather than let it fill.
+ HoverHandler { cursorShape: Qt.PointingHandCursor }
+ TapHandler { onTapped: { Accounts.open(account.modelData.key, row.modelData.thread); page.close(); } }
}
}
}