]> git.sesse.net Git - kdenlive/blobdiff - src/timecode.cpp
Required changes to make Kdenlive work with some locales that have a comma (,) as...
[kdenlive] / src / timecode.cpp
index 3b5749773f5a3ffe26051b57e0a88c6ae0b5746c..5e68e0d013513efdf7b0b8f5d1f5efdfe78ef5b3 100644 (file)
@@ -374,12 +374,13 @@ const QString Timecode::getTimecodeHH_MM_SS_HH(const GenTime & time) const
 
 const QString Timecode::getTimecodeFrames(const GenTime & time) const
 {
-    return QString::number(time.frames(m_realFps));
+    return QString::number((int) time.frames(m_realFps));
 }
 
 const QString Timecode::getTimecodeSeconds(const GenTime & time) const
 {
-    return QString::number(time.seconds());
+    QLocale locale;
+    return locale.toString(time.seconds());
 }
 
 const QString Timecode::getTimecodeDropFrame(const GenTime & time) const