X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fgentime.cpp;h=82e0d9c7a61839795d273abea24aa9c102af7d8a;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=21eb7b70af76466539db9460a1688a296003f0e1;hpb=5398a8fdd1406cdef1de9f084cf5e366d4b331fb;p=kdenlive diff --git a/src/gentime.cpp b/src/gentime.cpp index 21eb7b70..82e0d9c7 100644 --- a/src/gentime.cpp +++ b/src/gentime.cpp @@ -54,3 +54,8 @@ GenTime& GenTime::roundNearestFrame(double framesPerSecond) m_time = floor((m_time * framesPerSecond) + 0.5) / framesPerSecond; return *this; } + +QString GenTime::toString() const +{ + return QString("%1 s").arg(m_time, 0, 'f', 2); +}