658 offsetString = displayFormat.arg(hours).arg(minutes); |
658 offsetString = displayFormat.arg(hours).arg(minutes); |
659 offsetDifference += offsetString; |
659 offsetDifference += offsetString; |
660 } |
660 } |
661 } |
661 } |
662 else if ( hours ){ |
662 else if ( hours ){ |
663 if(hours == 1 ) { |
663 if(hours == 1) { |
664 displayFormat = hbTrId("txt_clock_dblist_daily_val_ln_hr"); |
664 displayFormat = hbTrId("txt_clock_dblist_daily_val_ln_hr",hours); |
665 offsetString = displayFormat.arg(hours); |
665 offsetDifference += displayFormat; |
666 offsetDifference += offsetString; |
|
667 } |
666 } |
668 else { |
667 else { |
669 displayFormat = hbTrId("txt_clock_dblist_val_1_hrs"); |
668 displayFormat = hbTrId("txt_clock_dblist_daily_val_ln_hr",hours); |
670 offsetString = displayFormat.arg(hours); |
669 offsetDifference += displayFormat; |
671 offsetDifference += offsetString; |
|
672 } |
670 } |
673 } |
671 } |
674 else if (minutes){ |
672 else if (minutes){ |
675 displayFormat = hbTrId("txt_clock_dblist_daily_val_ln_mins"); |
673 displayFormat = hbTrId("txt_clock_dblist_daily_val_ln_mins",minutes); |
676 offsetString = displayFormat.arg(minutes); |
674 offsetDifference += displayFormat; |
677 offsetDifference += offsetString; |
|
678 } else { |
675 } else { |
679 displayFormat = hbTrId("txt_clock_dblist_val_1_hrs"); |
676 displayFormat = hbTrId("txt_clock_dblist_daily_val_ln_hr",0); |
680 offsetString = displayFormat.arg(0); |
677 offsetDifference += displayFormat; |
681 offsetDifference += offsetString; |
|
682 } |
678 } |
683 displayString.append(offsetDifference); |
679 displayString.append(offsetDifference); |
684 |
680 |
685 // Show the time at that location. |
681 // Show the time at that location. |
686 QString timeInfo = dateTime.toString(mSettingsUtility->timeFormatString()); |
682 QString timeInfo = dateTime.toString(mSettingsUtility->timeFormatString()); |