aboutsummaryrefslogtreecommitdiff
path: root/qml/HtmlViewSheet.qml
diff options
context:
space:
mode:
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
}
+
}