Index: sources/gui/qml/compounds/CheckListView.qml =================================================================== diff -u -rc6cfb5043fc9c29cc039e36915368bcd3a63baa6 -rf0cbe4cfc8a5e6e7aa58a8eeaab2d838cf2ff957 --- sources/gui/qml/compounds/CheckListView.qml (.../CheckListView.qml) (revision c6cfb5043fc9c29cc039e36915368bcd3a63baa6) +++ sources/gui/qml/compounds/CheckListView.qml (.../CheckListView.qml) (revision f0cbe4cfc8a5e6e7aa58a8eeaab2d838cf2ff957) @@ -35,6 +35,9 @@ property int delegateWidth : Variables.checkListViewItemWidth property int delegateHeight : Variables.checkListViewItemHeight + property bool timeVisible : false + property int timeSeconds : 0 + function resetItems() { if ( visible ) { for (let i = 0; i < _listView.count; i++) { @@ -56,7 +59,6 @@ Column { anchors.centerIn: _root Repeater { id: _listView - model : _root.stepNames delegate: Item { id: _delegate property bool stepStart : false @@ -72,7 +74,7 @@ color : Colors.textMain font.pixelSize: Fonts.fontPixelStateListText } - Line { + Line { id: _separatorLine length : _delegate.width + 2 * linePad thickness : 2 anchors { @@ -88,6 +90,15 @@ visible : _delegate.stepStart done : _delegate.stepDone } + TimeText { id: _timeText + anchors.verticalCenter : _stepText.verticalCenter + anchors.left : _separatorLine.right + anchors.leftMargin : Variables.minVGap + seconds : _root.timeSeconds * 60 + secondsVisible : false + textPixelSize : Fonts.fontPixelStateListText + visible : _root.timeVisible && _delegate.stepStart && ! _delegate.stepDone + } } } }