Commit b1d1ba3d authored by Julien Boulay's avatar Julien Boulay
Browse files

fix: permet de masquer l'affichage des dates lorsqu'il n'y a pas l'espace...

fix: permet de masquer l'affichage des dates lorsqu'il n'y a pas l'espace suffisant en début de Timeline
parent f1aea227
......@@ -102,7 +102,7 @@ Item {
color: Material.color(Material.Grey)
font.family: "Roboto Condensed"
font.pixelSize: Units.fontSizeBodyAndButton
visible: seedingCircle.visible
visible: seedingCircle.visible && parent.x > seedingLabel.width
anchors.right: seedingCircle.left
anchors.verticalCenter: seedingCircle.verticalCenter
......@@ -113,7 +113,6 @@ Item {
id: seedingCircle
x: -width/4
visible: showGreenhouseSow && drawMap["greenhouseWidth"]
// visible: showGreenhouseSow && seedingDate < plantingDate && x < growBar.x
width: parent.height * 0.3
anchors.verticalCenter: parent.verticalCenter
height: width
......@@ -137,9 +136,7 @@ Item {
Rectangle {
id: growBar
// x: Helpers.widthBetween(control.x, seasonBegin, plantingDate)
x: drawMap["growStart"]
// width: Helpers.widthBetween(x+control.x, seasonBegin, beginHarvestDate)
width: drawMap["growWidth"]
visible: width > 0
height: parent.height * 0.7
......@@ -178,9 +175,7 @@ Item {
Rectangle {
id: harvestBar
// x: Helpers.widthBetween(control.x, seasonBegin, beginHarvestDate)
x: drawMap["harvestStart"]
// width: Helpers.widthBetween(x+control.x, seasonBegin, endHarvestDate)
width: drawMap["harvestWidth"]
visible: width > 0
height: parent.height * 0.7
......
......@@ -32,7 +32,6 @@ Item {
property int monthWidth: Units.monthWidth
readonly property int graphWidth: 12 * monthWidth
property var plantingIdList
// property var plantingDrawMapList
property var taskIdList
property bool showGreenhouseSow: true
property bool showOnlyActiveColor: false
......@@ -90,12 +89,9 @@ Item {
id: timegraphView
anchors.fill: parent
Repeater {
// model: plantingDrawMapList
model: plantingIdList
delegate: Timegraph {
plantingId: modelData
// plantingId: modelData["plantingId"]
// drawMap: modelData
locationId: root.locationId
locationLength: root.locationLength
todayDate: root.todayDate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment