Index: sources/gui/qml/pages/settings/SettingsInformation.qml =================================================================== diff -u -r6be40239ce52d641692de158a044af0a54cde1e8 -r36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a --- sources/gui/qml/pages/settings/SettingsInformation.qml (.../SettingsInformation.qml) (revision 6be40239ce52d641692de158a044af0a54cde1e8) +++ sources/gui/qml/pages/settings/SettingsInformation.qml (.../SettingsInformation.qml) (revision 36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a) @@ -80,10 +80,10 @@ vAdjustmentServiceDates .dgLastServiceDate , vAdjustmentServiceDates .dgNextServiceDate , "", "", // Space and title - vHDUsageInfo.totalTxHours , - vHDUsageInfo.totalTxHoursSinceLastService , - vHDUsageInfo.epochOfStartOfLastTx , - vHDUsageInfo.epochOfLastRecordReset , + vHDUsageInfo.totalTxHoursString , + vHDUsageInfo.totalTxHoursSinceLastServiceString , + vHDUsageInfo.epochOfStartOfLastTx , + vHDUsageInfo.epochOfLastRecordReset , ] itemsText : [ qsTr("Versions" ), // col1 title Index: sources/view/settings/VHDUsageInfo.cpp =================================================================== diff -u -r6be40239ce52d641692de158a044af0a54cde1e8 -r36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a --- sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 6be40239ce52d641692de158a044af0a54cde1e8) +++ sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a) @@ -33,13 +33,22 @@ */ void View::VHDUsageInfo::onActionReceive(const HDUsageInfoResponseData &vData) { - qDebug()<<"GOT DATA " << vData.mTotalTxHours; totalTxHours (vData.mTotalTxHours ); totalTxHoursSinceLastService(vData.mTotalTxHoursSinceLastService); epochOfStartOfLastTx (vData.mEpochOfStartOfLastTx ); epochOfLastRecordReset (vData.mEpochOfLastRecordReset ); crc (vData.mCrc ); + int hours = vData.mTotalTxHours; + int minutes = (vData.mTotalTxHours - hours) * 60; + QString timeFormatted = QString("%1:%2").arg(hours).arg(minutes); + totalTxHoursString(timeFormatted); + + hours = vData.mTotalTxHoursSinceLastService; + minutes = (vData.mTotalTxHoursSinceLastService - hours) * 60; + timeFormatted = QString("%1:%2").arg(hours).arg(minutes); + totalTxHoursSinceLastServiceString(timeFormatted); + // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the Previous values before being set. *** adjustment ( true ); Index: sources/view/settings/VHDUsageInfo.h =================================================================== diff -u -r6be40239ce52d641692de158a044af0a54cde1e8 -r36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a --- sources/view/settings/VHDUsageInfo.h (.../VHDUsageInfo.h) (revision 6be40239ce52d641692de158a044af0a54cde1e8) +++ sources/view/settings/VHDUsageInfo.h (.../VHDUsageInfo.h) (revision 36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a) @@ -47,12 +47,14 @@ // disabled coco end //HD Usage Information - PROPERTY(float , totalTxHours , 0) - PROPERTY(float , totalTxHoursSinceLastService , 0) - PROPERTY(quint32 , epochOfStartOfLastTx , 0) - PROPERTY(quint32 , epochOfLastRecordReset , 0) - PROPERTY(quint16 , crc , 0) + PROPERTY(float , totalTxHours , 0 ) + PROPERTY(float , totalTxHoursSinceLastService , 0 ) + PROPERTY(quint32 , epochOfStartOfLastTx , 0 ) + PROPERTY(quint32 , epochOfLastRecordReset , 0 ) + PROPERTY(quint16 , crc , 0 ) + PROPERTY(QString , totalTxHoursString , "" ) + PROPERTY(QString , totalTxHoursSinceLastServiceString, "" ) VIEW_DEC_CLASS(VHDUsageInfo) VIEW_DEC_SLOT (HDUsageInfoResponseData)