videocollection/videocollectionwrapper/src/videolistdatamodel_p.cpp
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
child 38 ff53afa8ad05
--- a/videocollection/videocollectionwrapper/src/videolistdatamodel_p.cpp	Fri Apr 16 18:13:14 2010 +0300
+++ b/videocollection/videocollectionwrapper/src/videolistdatamodel_p.cpp	Fri Apr 30 09:52:11 2010 +0300
@@ -15,7 +15,7 @@
 * 
 */
 
-// Version : %version: %
+// Version : %version: 37 %
 
 // INCLUDE FILES
 #include <hbglobal.h>
@@ -760,7 +760,6 @@
         map[MetaKeyDate] = locale.format( date.date(), r_qtn_date_usual );
     }
     
-    //TODO: Localisation
     // MetaKeyDurationString
     quint32 dur = getVideoDuration(media);
     QString duration = VideoCollectionUtils::instance().prepareLengthString(dur);
@@ -768,7 +767,6 @@
         map[MetaKeyDurationString] = duration;
     }
     
-    //TODO: Localisation
     // MetaKeySizeString
     quint32 s;
     VideoCollectionUtils::instance().mediaValue<quint32>(media, KMPXMediaGeneralSize, s );
@@ -798,7 +796,7 @@
     quint64 dateTimeValue;
     if(VideoCollectionUtils::instance().mediaValue<quint64>(media, KVcxMediaMyVideosModifiedDate, dateTimeValue)) {
         TDateTime temp = TTime( dateTimeValue ).DateTime();
-        QDateTime date = QDateTime(QDate(temp.Year(), temp.Month()+1, temp.Day()), 
+        QDateTime date = QDateTime(QDate(temp.Year(), temp.Month()+1, temp.Day()+1), 
                            QTime(temp.Hour(), temp.Minute(), temp.Second(), temp.MicroSecond()));
         map[MetaKeyModifiedDate] = locale.format( date.date(), r_qtn_date_usual );
     }
@@ -848,7 +846,7 @@
             bitrate = (double)bitrate / (double)1000 + 0.5;
         }
         
-        map[MetaKeyBitRate] = hbTrId(loc, bitrate);
+        map[MetaKeyBitRate] = hbTrId(loc).arg(bitrate);
     }
     
     // MetaKeyFormat