diff options
author | Arno <am@disconnect.de> | 2013-07-06 19:24:04 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-07-06 19:24:04 +0200 |
commit | b039fbf6aaef0e961490f8267a91976866ac2e0a (patch) | |
tree | 270fbd374dbb0d2cc524ba24328da537f30213a7 /helper.cpp | |
parent | bd6a6a7c42dabe2d0d86e309a6dc6b04de7c0a10 (diff) | |
download | SheMov-b039fbf6aaef0e961490f8267a91976866ac2e0a.tar.gz SheMov-b039fbf6aaef0e961490f8267a91976866ac2e0a.tar.bz2 SheMov-b039fbf6aaef0e961490f8267a91976866ac2e0a.zip |
Lots of Display Changes
* Save header states
* Implement delegates for columns
* unify size and duration to 1 column
* colorize View
... and lots of other things I forgot :)
Diffstat (limited to 'helper.cpp')
-rw-r--r-- | helper.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -246,6 +246,19 @@ namespace Helper { Duration::Duration() : mHours(0), mMinutes(0), mSeconds(0) {} + Duration::Duration(qint64 seconds){ + int sec(0), min(0), h(0); + // get hours + h = (seconds / 60 / 60) % 24; + // remaining minutes + min = (seconds / 60) % 60; + // seconds + sec = seconds % 60; + mHours = h; + mMinutes = min; + mSeconds = sec; + } + Duration::Duration(const QString &dur) : mHours(0), mMinutes(0), mSeconds(0){ QStringList parts = dur.split(':'); if(parts.size() == 3){ |