]> git.sesse.net Git - kdenlive/blobdiff - src/gentime.cpp
Const'ref
[kdenlive] / src / gentime.cpp
index d5ebab383d4429b5f6b8348c3c38b55ab71562b6..82e0d9c7a61839795d273abea24aa9c102af7d8a 100644 (file)
@@ -53,4 +53,9 @@ GenTime& GenTime::roundNearestFrame(double framesPerSecond)
 {
     m_time = floor((m_time * framesPerSecond) + 0.5) / framesPerSecond;
     return *this;
-}
\ No newline at end of file
+}
+
+QString GenTime::toString() const
+{
+    return QString("%1 s").arg(m_time, 0, 'f', 2);
+}