diff options
author | link2xt <link2xt@testrun.org> | 2021-05-22 15:23:16 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-05-22 15:23:16 +0300 |
commit | 1860c787e167d1c08e71b15de41ebe7a6b5d0c29 (patch) | |
tree | 047ce375c8ae5b63ea5fdccd979c248054b6e431 /qml/HtmlViewSheet.qml | |
parent | 166d17e61da080ee7b83317b1a97ec2046960706 (diff) | |
download | kdeltachat-1860c787e167d1c08e71b15de41ebe7a6b5d0c29.tar.gz kdeltachat-1860c787e167d1c08e71b15de41ebe7a6b5d0c29.zip |
Add HTML view for messages
Diffstat (limited to 'qml/HtmlViewSheet.qml')
-rw-r--r-- | qml/HtmlViewSheet.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qml/HtmlViewSheet.qml b/qml/HtmlViewSheet.qml new file mode 100644 index 0000000..03e0147 --- /dev/null +++ b/qml/HtmlViewSheet.qml @@ -0,0 +1,23 @@ +import QtQuick 2.12 +import QtWebEngine 1.10 + +import org.kde.kirigami 2.12 as Kirigami + +Kirigami.OverlaySheet { + property string subject + property string html + + header: Kirigami.Heading { + text: subject + } + + WebEngineView { + id: web + height: 500 + } + + onHtmlChanged: { + console.log("Loading HTML!") + web.loadHtml(html) + } +} |