summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-15 00:38:53 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-15 00:38:53 +0200
commita5683c16c730b8596352c1a769302fd8d1e88d43 (patch)
treede0592900d6c06f0c959f1a59b5b9824c439211e
parentd7b40aeb125ece23bf2f039f4bb938f5cd010896 (diff)
downloadkube-a5683c16c730b8596352c1a769302fd8d1e88d43.tar.gz
kube-a5683c16c730b8596352c1a769302fd8d1e88d43.zip
Finally figured out how to position the debug view over the window.
-rw-r--r--framework/qml/MailViewer.qml34
1 files changed, 20 insertions, 14 deletions
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 {
392 Kube.Popup { 392 Kube.Popup {
393 id: debugPopup 393 id: debugPopup
394 modal: true 394 modal: true
395 parent: ApplicationWindow.overlay
395 closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent 396 closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
396 x: 0 397 x: (parent.width - width)/2
397 y: 0 398 y: Kube.Units.largeSpacing
398 width: root.width 399 width: parent.width / 2
399 height: root.height 400 height: parent.height - Kube.Units.largeSpacing * 2
401 clip: true
400 402
401 Flickable { 403 Flickable {
402 id: flickable 404 id: flickable
@@ -408,6 +410,20 @@ Rectangle {
408 width: flickable.width 410 width: flickable.width
409 height: childrenRect.height 411 height: childrenRect.height
410 412
413 TextEdit {
414 id: rawContent
415 width: parent.width
416 readOnly: true
417 selectByMouse: true
418 textFormat: TextEdit.PlainText
419 wrapMode: TextEdit.Wrap
420 height: implicitHeight
421 text: messageParser.rawContent
422 }
423 Rectangle {
424 color: "black"
425 height: 2
426 }
411 Controls1.TreeView { 427 Controls1.TreeView {
412 id: mailStructure 428 id: mailStructure
413 width: parent.width 429 width: parent.width
@@ -472,16 +488,6 @@ Rectangle {
472 wrapMode: TextEdit.Wrap 488 wrapMode: TextEdit.Wrap
473 height: implicitHeight 489 height: implicitHeight
474 } 490 }
475 TextEdit {
476 id: rawContent
477 width: parent.width
478 readOnly: true
479 selectByMouse: true
480 textFormat: TextEdit.PlainText
481 wrapMode: TextEdit.Wrap
482 height: implicitHeight
483 text: messageParser.rawContent
484 }
485 } 491 }
486 } 492 }
487 } 493 }