| 3 | #include <QtCore/QString> |
| 4 | |
| 5 | QString Timecode::fromTime(const QTime& time, bool useDropFrameNotation) |
| 6 | { |
| 7 | QString result = time.toString("hh:mm:ss").append((useDropFrameNotation == true) ? "." : ":"); |
| 8 | |
| 9 | int msec = time.msec() / 10; |
| 10 | if (msec < 10) |
| 11 | result.append("0"); |
| 12 | |
| 13 | return result.append(QString("%1").arg(msec)); |
| 14 | } |
| 15 | |
| 16 | QString Timecode::fromTime(double time, double fps, bool useDropFrameNotation) |
| 17 | { |