Index: sources/model/hd/adjustment/settings/MAdjustHDRequests.h =================================================================== diff -u -r2d0bacfbe1b70055247eb40743405a5f9acb15e3 -ra04fd119778f0483cba5139a11e3c6bad7f2324a --- sources/model/hd/adjustment/settings/MAdjustHDRequests.h (.../MAdjustHDRequests.h) (revision 2d0bacfbe1b70055247eb40743405a5f9acb15e3) +++ sources/model/hd/adjustment/settings/MAdjustHDRequests.h (.../MAdjustHDRequests.h) (revision a04fd119778f0483cba5139a11e3c6bad7f2324a) @@ -74,14 +74,27 @@ * */ class MAdjustHDAlarmVolumeReq : public MModel { + + const int hw2ui = 20; // HD vol range is [1-5] and we show [20%-100%] to user (100 / 5). + quint32 _volume =100; // values in range of [20, 40, 60, 80, 100] or [1..5]*20 + public: - quint32 volume; + quint32 volume2HD() const { + return _volume / hw2ui; + } + quint32 volume() { + return _volume; + } + void volume(quint32 vVolume) { + _volume = vVolume; + } + // disabled coco begin validated : Has been validated manually. // This object is used statically for now, kept the logic for later usage. QString toString() { - return toString( { volume } ); + return toString( { _volume } ); } // disabled coco end static QString toString(const QVariantList &vParameters) {