From 2936a854df9f1a1202fda08cd71773a95c727603 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 2 Oct 2021 23:30:45 +0000 Subject: Fix QML code style Mostly qmlformat, also rename root "id"s. --- qml/HtmlViewSheet.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'qml/HtmlViewSheet.qml') 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 } + } -- cgit v1.2.3-70-g09d2