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 );