Index: sources/gui/qml/pages/treatment/sections/TreatmentPressure.qml =================================================================== diff -u -rcd7de5f6d239a11615ba8c6c03339a10996486ca -rfe9182d85a7e707c5a476331e03ed493371f7f7f --- sources/gui/qml/pages/treatment/sections/TreatmentPressure.qml (.../TreatmentPressure.qml) (revision cd7de5f6d239a11615ba8c6c03339a10996486ca) +++ sources/gui/qml/pages/treatment/sections/TreatmentPressure.qml (.../TreatmentPressure.qml) (revision fe9182d85a7e707c5a476331e03ed493371f7f7f) @@ -16,6 +16,7 @@ import QtQuick 2.12 // Project +import VTreatmentPressureOcclusion 0.1; // Qml imports import "qrc:/globals" @@ -33,26 +34,24 @@ isTouchable: true orientation: TouchArea.Orientation.Horizontal title: qsTr("PRESSURE") + " " + qsTr("(mmHg)") + + VTreatmentPressureOcclusion { id: vTreatmentPressureOcclusion } + RangeBar { id: _arterialRangeBar x: 0 y: 75 width : 175 height : 15 rangebar.color: Colors.pressuresArterialBar - value : 0 + value : vTreatmentPressureOcclusion.pressureocclusion_ArterialPressure // TEST : simulation code minimum : -400 maximum : 400 lowerBound: -300 upperBound: 100 - NumberAnimation on value { - duration: 70000 - from: _arterialRangeBar.minimum - to: _arterialRangeBar.maximum - loops: Animation.Infinite - } + Text { id: _arterialText anchors { left: parent.left @@ -72,20 +71,14 @@ height : 15 rangebar.color: Colors.pressuresVenousBar - value : 0 + value : vTreatmentPressureOcclusion.pressureocclusion_VenousPressure // TEST : simulation code minimum: -100 maximum: 800 lowerBound: -100 upperBound: 500 - NumberAnimation on value { - duration: 70000 - from : _venousRangeBar.minimum - to : _venousRangeBar.maximum - loops : Animation.Infinite - } Text { id: _venousText anchors { left: parent.left