X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fgentime.cpp;h=82e0d9c7a61839795d273abea24aa9c102af7d8a;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=d5ebab383d4429b5f6b8348c3c38b55ab71562b6;hpb=8a14e93ad75ed21559b1b7be75439fb3270c4e43;p=kdenlive diff --git a/src/gentime.cpp b/src/gentime.cpp index d5ebab38..82e0d9c7 100644 --- a/src/gentime.cpp +++ b/src/gentime.cpp @@ -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); +}