I know. But imagine you want to send what has already been adjusted without any slider change. With your idea, you then have to move the slider to send a message, which may not be the same as the previous one, depending on your slider resolution and how difficult it is to set to the same value.
I don't remember if I did, but have you tested if we have any problem with the direct conversion of the bool to an unsigned integer? shouldn't we convert it here with Qt conversion functions?
In C++ the trinary "?" operator will call both true and false sections and then will decide which to return. If that is the case for the QML/JS I suggest using a function with an if block to return the decided object. to ensure the trinary "?" operator behavior, you can use the "Component.onCompleted: {", if the new Qt 5.15 in-line Component declaration supports it.
1 - The component instance has been used in the same file, and that is the new feature, and previously we have to create a file to use the component instance, or directly return the created component for one instance use. 2 - The Loader is used inside of the component, which doesn't seem right, the idea is to use inline components so, if possible, avoid loaders. 3 - Multiple components for the line tickmarks and round ones are created since it seems only a property change to make it rounded, since QML doesn't have a line or circle and all are Rectangle, it makes sense to update the underlying rectangle properties to get the desired shape.
Per our re-prime slide deck, we wanted to change minimum ultrafiltration volume from zero to X mL. X = treatment duration (in hrs) x 100 mL. I think changes are in order in ModeTreatmentParams.c and perhaps elsewhere to implement that change. Also, in Reservoirs.c, we will want to prevent dialysate use from being counted while in re-prime states. Also, there were some alarms we wanted to exempt while performing re-prime. Let me know if you'd like me to handle any of these parts of the implementation.
Ok, but still need to resolve first part of my comment. This is not an override for temperature value. It is override for the fpga read counter of the temperature sensor.
The timer should have been 5 minutes, my mistake. The purpose is to prevent repeated triggering of the reprime after the 5 minute before treatment reprime is done, as you pointed out. If I change the 5 hours to 5 minutes, is that OK?