aboutsummaryrefslogtreecommitdiff
path: root/qml/HtmlViewSheet.qml
blob: 005282c8b6a7d82b023e394d78f0d16abeb67a6e (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
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

    onHtmlChanged: {
        console.log("Loading HTML!");
        web.loadHtml(html);
    }

    WebEngineView {
        id: web

        height: 500
    }

    header: Kirigami.Heading {
        text: subject
    }

}