aboutsummaryrefslogtreecommitdiff
path: root/qml/HtmlViewSheet.qml
blob: 03e0147947bc223eabbb0209823bfda010061afe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
    }
}