Index: sources/model/hd/adjustment/settings/MAdjustHDRequests.h =================================================================== diff -u -r6e6ec6822b82c77bb4942c9f4061e860d1a70f85 -r9ab362fe84a6056c7cfc097010d21b12b084e0ad --- sources/model/hd/adjustment/settings/MAdjustHDRequests.h (.../MAdjustHDRequests.h) (revision 6e6ec6822b82c77bb4942c9f4061e860d1a70f85) +++ sources/model/hd/adjustment/settings/MAdjustHDRequests.h (.../MAdjustHDRequests.h) (revision 9ab362fe84a6056c7cfc097010d21b12b084e0ad) @@ -75,10 +75,16 @@ */ class MAdjustHDAlarmVolumeReq : public MModel { - quint32 _volume = 5; // HD vol range is [1-5] + const int hw2ui = 1; // HD vol range is [1-5]; set to 20 if we show [20%-100%] to user (100 / 5). + quint32 _volume = 5; // HD vol range is [1-5]; set to 100 if we show [20%-100%] since values in range of [20, 40, 60, 80, 100] or [1..5]*20 public: - quint32 volume() const{ + + quint32 volume2HD() const { + return _volume / hw2ui; + } + + quint32 volume() { return _volume; } void volume(quint32 vVolume) {