Add to UI a section for last reading.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user