Skip to content

Commit 22c838b

Browse files
Peter Karlssondotarmin
Peter Karlsson
authored andcommitted
Fixed zero padding in timecode.
1 parent dd77f65 commit 22c838b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Common/Timecode.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ QString Timecode::fromTime(double time, double fps, bool useDropFrameNotation)
2525
seconds = (int)(time - hour * 3600 - minutes * 60);
2626
frames = (int)((time - hour * 3600 - minutes * 60 - seconds) * fps);
2727

28-
return QString("%1%2%3%4%5").arg(hour, 2, 16)
29-
.arg(minutes, 2, 16)
30-
.arg(seconds, 2, 16)
28+
return QString("%1:%2:%3%4%5").arg(hour, 2, 10, QChar('0'))
29+
.arg(minutes, 2, 10, QChar('0'))
30+
.arg(seconds, 2, 10, QChar('0'))
3131
.arg(useDropFrameNotation ? "." : ":")
32-
.arg(frames, 2, 16);
32+
.arg(frames, 2, 10, QChar('0'));
3333
}

src/Widgets/Library/LibraryWidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ LibraryWidget::LibraryWidget(QWidget* parent)
7373
this->treeWidgetVideo->setColumnHidden(3, true);
7474
this->treeWidgetVideo->setColumnHidden(4, true);
7575
this->treeWidgetVideo->setColumnHidden(5, true);
76-
this->treeWidgetVideo->setColumnWidth(6, 71);
76+
this->treeWidgetVideo->setColumnWidth(6, 75);
7777

7878
this->treeWidgetData->setColumnHidden(1, true);
7979
this->treeWidgetData->setColumnHidden(2, true);

0 commit comments

Comments
 (0)