int hours, minutes, seconds, frames;
int offset = 0;
if (duration.at(0) == '-') {
offset = 1;
hours = duration.mid(1, 2).toInt();
int hours, minutes, seconds, frames;
int offset = 0;
if (duration.at(0) == '-') {
offset = 1;
hours = duration.mid(1, 2).toInt();
minutes = duration.mid(3 + offset, 2).toInt();
seconds = duration.mid(6 + offset, 2).toInt();
frames = duration.right(2).toInt();
minutes = duration.mid(3 + offset, 2).toInt();
seconds = duration.mid(6 + offset, 2).toInt();
frames = duration.right(2).toInt();
text.append(QString::number(minutes).rightJustified(2, '0', false));
text.append(':');
text.append(QString::number(seconds).rightJustified(2, '0', false));
text.append(QString::number(minutes).rightJustified(2, '0', false));
text.append(':');
text.append(QString::number(seconds).rightJustified(2, '0', false));