Index: sources/gui/qml/pages/treatment/sections/TreatmentPressures.qml =================================================================== diff -u -r46e41ed9fff827146079e1ed4b03425b310dd0c6 -r7805806e4370be4d9207872e916f478875bd4ba6 --- sources/gui/qml/pages/treatment/sections/TreatmentPressures.qml (.../TreatmentPressures.qml) (revision 46e41ed9fff827146079e1ed4b03425b310dd0c6) +++ sources/gui/qml/pages/treatment/sections/TreatmentPressures.qml (.../TreatmentPressures.qml) (revision 7805806e4370be4d9207872e916f478875bd4ba6) @@ -49,7 +49,6 @@ header.title: qsTr("Pressures") + " (" + qsTr("mmHg") + ")" - contentItem: Column { id: _column spacing: Variables.defaultMargin * 4 topPadding : Variables.defaultMargin @@ -100,7 +99,42 @@ valueOutRangeNotify : _root.valueOutRangeNotify } + } + TreatmentSectionIcon { id : _expandingArrows + anchors { + top : header.bottom + topMargin : Variables.defaultMargin + right : parent.right + rightMargin : Variables.defaultMargin + } + iconSize : 70 + iconImage.source : "qrc:/images/arrowsExpanding" + enabled : ! expandingTimer.running + + onClicked : { + expandingTimer.start() + expandAllRangeBars() + } } + + Timer { + id: expandingTimer + interval: 30000 // 30 second expand timer + repeat: false + onTriggered: resetAllRangeBars() + } + + function expandAllRangeBars() { + _arterialRangeBar.expandRangeBar() + _venousRangeBar.expandRangeBar() + _tmpRangeBar.expandRangeBar() + } + + function resetAllRangeBars() { + _arterialRangeBar.resetRangeBar() + _venousRangeBar.resetRangeBar() + _tmpRangeBar.resetRangeBar() + } }