]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Show the real audio file duration in additional informations
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Wed, 9 Jan 2013 15:24:15 +0000 (16:24 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Wed, 9 Jan 2013 15:24:15 +0000 (16:24 +0100)
Big Thanks to Frank Reininghaus and Vishesh Handa!

BUG: 311794
REVIEW: 108281
FIXED-IN: 4.10

src/kitemviews/private/knepomukrolesprovider.cpp
src/kitemviews/private/knepomukrolesprovider.h

index 1bdac6dfced27fcf031d7b553bdd932bef8e4d0b..3b1899278b96e0fe214d37c58b16f4488b661b77 100644 (file)
@@ -183,7 +183,7 @@ QString KNepomukRolesProvider::orientationFromValue(int value) const
 QString KNepomukRolesProvider::durationFromValue(int value) const
 {
     QTime duration;
-    duration = duration.addMSecs(value);
+    duration = duration.addSecs(value);
     return duration.toString("hh:mm:ss");
 }
 
index 8290b571eacbe0a7fee284c516ee8b518f91598e..b8c7e51e60e55ffb4c0c116b94613dbdb58efa8c 100644 (file)
@@ -73,7 +73,7 @@ private:
 
     /**
      * @return Duration in the format HH::MM::SS for the value given
-     *         in milliseconds.
+     *         in seconds.
      */
     QString durationFromValue(int value) const;