aboutsummaryrefslogtreecommitdiff
path: root/src/weight/WeightPreview.qml
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-07-02 16:31:18 +0100
committerdodoradio <dodoradio@outlook.com>2023-08-02 22:54:43 +0100
commit80477423d8468439721092bdef6e277efd3bcce8 (patch)
tree09ae990f18b6779399e392c87042c2f1431a91d6 /src/weight/WeightPreview.qml
parent1747034feba274292cc9acfde21a1576d59a11a9 (diff)
Add detail view page for weight
Diffstat (limited to '')
-rw-r--r--src/weight/WeightPreview.qml46
1 files changed, 28 insertions, 18 deletions
diff --git a/src/weight/WeightPreview.qml b/src/weight/WeightPreview.qml
index 7c6d1a8..14bf0e2 100644
--- a/src/weight/WeightPreview.qml
+++ b/src/weight/WeightPreview.qml
@@ -22,27 +22,37 @@ import org.asteroid.controls 1.0
import org.asteroid.sensorlogd 1.0
import "../graphs"
-
-Column {
- Label {
- anchors {
- left: parent.left
- margins: app.width*0.1
+MouseArea {
+ height: column.implicitHeight
+ onClicked: pageStack.push(weightDetailPage)
+ Column {
+ id: column
+ anchors.fill: parent
+ Label {
+ anchors {
+ left: parent.left
+ margins: app.width*0.1
+ }
+ text: "Weight"
}
- text: "Weight"
- }
- Item { width: parent.width; height: parent.width*0.1}
+ Item { width: parent.width; height: parent.width*0.1}
- WeightGraph {
- anchors.horizontalCenter: parent.horizontalCenter
- width: parent.width*0.9
- height: app.height*2/3
- Component.onCompleted: {
- var d = new Date()
- endTime = d
- d.setDate(d.getDate() - 30)
- startTime = d
+ WeightGraph {
+ anchors.horizontalCenter: parent.horizontalCenter
+ width: parent.width*0.9
+ height: app.height*2/3
+ Component.onCompleted: {
+ var d = new Date()
+ endTime = d
+ d.setDate(d.getDate() - 30)
+ startTime = d
+ }
}
}
+
+ Component {
+ id: weightDetailPage
+ WeightDetailPage {}
+ }
}