summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/helper.cpp b/helper.cpp
index ae5eb36..b73ea2a 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -287,4 +287,10 @@ namespace Helper {
return mHours == 0 && mMinutes == 0 && mSeconds == 0;
}
+ qint64 Duration::toSeconds() const {
+ qint64 retval;
+ retval = mHours * 60 * 60 + mMinutes * 60 + mSeconds;
+ return retval;
+ }
+
}