Changeset 43 for lib/song.cpp
- Timestamp:
- 01/07/08 17:44:35 (4 years ago)
- File:
-
- 1 edited
-
lib/song.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lib/song.cpp
r17 r43 1 #include <cmath> 1 2 #include "song.h" 2 3 … … 25 26 title = "<Unknown>"; 26 27 } 28 29 QString Song::formattedTime(const quint32 &seconds) 30 { 31 QString result; 32 33 result += QString::number(floor(seconds / 60.0)); 34 result += ":"; 35 if(seconds % 60 < 10) 36 result += "0"; 37 result += QString::number(seconds % 60); 38 39 return result; 40 }
Note: See TracChangeset
for help on using the changeset viewer.
