From 0f63b81cb723eb796bf38c58247f18e025503516 Mon Sep 17 00:00:00 2001 From: Kevin Whitaker Date: Wed, 6 Nov 2019 18:30:28 -0500 Subject: [PATCH] Add to UI a section for last reading. --- src/contents/ui/main.qml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml index 0d17b69..ed54778 100644 --- a/src/contents/ui/main.qml +++ b/src/contents/ui/main.qml @@ -1,6 +1,7 @@ -import QtQuick 2.1 +import QtQuick 2.6 import org.kde.kirigami 2.4 as Kirigami import QtQuick.Controls 2.0 as Controls +import QtQuick.Layouts 1.12 as Layouts Kirigami.ApplicationWindow { id: root @@ -37,6 +38,24 @@ Kirigami.ApplicationWindow { banner { title: model.title titleIcon: model.icon + titleLevel: 2 + } + header: Row { + layoutDirection: Qt.RightToLeft + topPadding: 10.0 + rightPadding: 10.0 + Layouts.ColumnLayout { + Kirigami.Heading { + Layouts.Layout.alignment: Qt.AlignCenter + level: 4 + text: "Last Measured" + } + Kirigami.Heading { + Layouts.Layout.alignment: Qt.AlignCenter + level: 3 + text: "40" //TODO: replace + } + } } contentItem: Controls.Label { wrapMode: Text.WordWrap -- GitLab