From a5683c16c730b8596352c1a769302fd8d1e88d43 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 15 Jun 2017 00:38:53 +0200 Subject: Finally figured out how to position the debug view over the window. --- framework/qml/MailViewer.qml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'framework') diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index 67279d6b..9df3554c 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml @@ -392,11 +392,13 @@ Rectangle { Kube.Popup { id: debugPopup modal: true + parent: ApplicationWindow.overlay closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent - x: 0 - y: 0 - width: root.width - height: root.height + x: (parent.width - width)/2 + y: Kube.Units.largeSpacing + width: parent.width / 2 + height: parent.height - Kube.Units.largeSpacing * 2 + clip: true Flickable { id: flickable @@ -408,6 +410,20 @@ Rectangle { width: flickable.width height: childrenRect.height + TextEdit { + id: rawContent + width: parent.width + readOnly: true + selectByMouse: true + textFormat: TextEdit.PlainText + wrapMode: TextEdit.Wrap + height: implicitHeight + text: messageParser.rawContent + } + Rectangle { + color: "black" + height: 2 + } Controls1.TreeView { id: mailStructure width: parent.width @@ -472,16 +488,6 @@ Rectangle { wrapMode: TextEdit.Wrap height: implicitHeight } - TextEdit { - id: rawContent - width: parent.width - readOnly: true - selectByMouse: true - textFormat: TextEdit.PlainText - wrapMode: TextEdit.Wrap - height: implicitHeight - text: messageParser.rawContent - } } } } -- cgit v1.2.3