From 3eff42fdbf6406b6fb230be86aca759427e4681e Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 9 Jan 2017 16:53:42 +0100 Subject: elide text in header --- components/package/contents/ui/SingleMailView.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'components/package') diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 2db3afd4..ca6d52f1 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml @@ -147,6 +147,7 @@ Item { text: model.sender width: parent.width - senderName.width - date_label.width - Kirigami.Units.largeSpacing + elide: Text.ElideRight color: Kirigami.Theme.textColor opacity: 0.75 @@ -156,25 +157,34 @@ Item { } Text { + + width: to.width + text: model.subject + elide: Text.ElideRight + color: Kirigami.Theme.textColor opacity: 0.75 - font.italic: true } Text { id: to + width: parent.width - goDown.width - Kirigami.Units.smallSpacing + text:"to: "+ model.to + " " + model.cc + " " + model.bcc + elide: Text.ElideRight + color: Kirigami.Theme.textColor opacity: 0.75 } } Rectangle { + id: goDown anchors { bottom: seperator.top right: seperator.right -- cgit v1.2.3