diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-14 14:49:26 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-14 14:49:26 +0100 |
commit | 3d6e4414fb3c6d540992b1c380cd6aff7475644e (patch) | |
tree | 744aa191a52b1997f360ec13ee4503fc9b785e52 /components/package/contents/ui/SingleMailView.qml | |
parent | 8e9dcdd70b74e625c6c0b1a7f4b06888de9407b8 (diff) | |
download | kube-3d6e4414fb3c6d540992b1c380cd6aff7475644e.tar.gz kube-3d6e4414fb3c6d540992b1c380cd6aff7475644e.zip |
make plaintext/html switcher clickable
Diffstat (limited to 'components/package/contents/ui/SingleMailView.qml')
-rw-r--r-- | components/package/contents/ui/SingleMailView.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 49217e56..9b38b5be 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml | |||
@@ -63,6 +63,7 @@ Item { | |||
63 | 63 | ||
64 | //TODO Make it clickable | 64 | //TODO Make it clickable |
65 | Text { | 65 | Text { |
66 | |||
66 | anchors { | 67 | anchors { |
67 | right: parent.right | 68 | right: parent.right |
68 | rightMargin: Kirigami.Units.gridUnit * 0.2 | 69 | rightMargin: Kirigami.Units.gridUnit * 0.2 |
@@ -74,6 +75,14 @@ Item { | |||
74 | text: "<b>Plaintext</b> / <i>HTML</i>" | 75 | text: "<b>Plaintext</b> / <i>HTML</i>" |
75 | color: Kirigami.Theme.textColor | 76 | color: Kirigami.Theme.textColor |
76 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 | 77 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 |
78 | |||
79 | MouseArea { | ||
80 | anchors.fill: parent | ||
81 | |||
82 | onClicked: { | ||
83 | parent.text == "<b>Plaintext</b> / <i>HTML</i>" ? parent.text = "<i>Plaintext</i> / <b>HTML</b>" : parent.text = "<b>Plaintext</b> / <i>HTML</i>" | ||
84 | } | ||
85 | } | ||
77 | } | 86 | } |
78 | 87 | ||
79 | Rectangle { | 88 | Rectangle { |