From 3d6e4414fb3c6d540992b1c380cd6aff7475644e Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 14 Dec 2016 14:49:26 +0100 Subject: make plaintext/html switcher clickable --- components/package/contents/ui/SingleMailView.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'components/package/contents/ui') 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 { //TODO Make it clickable Text { + anchors { right: parent.right rightMargin: Kirigami.Units.gridUnit * 0.2 @@ -74,6 +75,14 @@ Item { text: "Plaintext / HTML" color: Kirigami.Theme.textColor font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 + + MouseArea { + anchors.fill: parent + + onClicked: { + parent.text == "Plaintext / HTML" ? parent.text = "Plaintext / HTML" : parent.text = "Plaintext / HTML" + } + } } Rectangle { -- cgit v1.2.3