aboutsummaryrefslogtreecommitdiff
path: root/qml/HtmlViewSheet.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-10-02 23:30:45 +0000
committerlink2xt <link2xt@testrun.org>2021-10-02 23:30:45 +0000
commit2936a854df9f1a1202fda08cd71773a95c727603 (patch)
tree063e23801381e88d4b421884168c9e199166896c /qml/HtmlViewSheet.qml
parent40092aa096bac7e279eb5a4cc97758bac484236c (diff)
downloadkdeltachat-2936a854df9f1a1202fda08cd71773a95c727603.tar.gz
kdeltachat-2936a854df9f1a1202fda08cd71773a95c727603.zip
Fix QML code style
Mostly qmlformat, also rename root "id"s.
Diffstat (limited to 'qml/HtmlViewSheet.qml')
-rw-r--r--qml/HtmlViewSheet.qml13
1 files changed, 7 insertions, 6 deletions
diff --git a/qml/HtmlViewSheet.qml b/qml/HtmlViewSheet.qml
index 03e0147..005282c 100644
--- a/qml/HtmlViewSheet.qml
+++ b/qml/HtmlViewSheet.qml
@@ -1,23 +1,24 @@
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
+ onHtmlChanged: {
+ console.log("Loading HTML!");
+ web.loadHtml(html);
}
WebEngineView {
id: web
+
height: 500
}
- onHtmlChanged: {
- console.log("Loading HTML!")
- web.loadHtml(html)
+ header: Kirigami.Heading {
+ text: subject
}
+
}