Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
b9c8ce82
Commit
b9c8ce82
authored
Feb 25, 2021
by
Jan Paul Batrina
Committed by
Jean-Baptiste Mardelle
Mar 04, 2021
Browse files
Use two digits for hours in SRT timecodes
BUG: 433193
parent
071d831f
Pipeline
#53040
canceled with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/bin/model/subtitlemodel.cpp
View file @
b9c8ce82
...
@@ -1002,7 +1002,7 @@ void SubtitleModel::jsontoSubtitle(const QString &data)
...
@@ -1002,7 +1002,7 @@ void SubtitleModel::jsontoSubtitle(const QString &data)
.
arg
(
seconds
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
seconds
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
milli_2
,
2
,
10
,
QChar
(
'0'
));
.
arg
(
milli_2
,
2
,
10
,
QChar
(
'0'
));
QString
startTimeStringSRT
=
QString
(
"%1:%2:%3,%4"
)
QString
startTimeStringSRT
=
QString
(
"%1:%2:%3,%4"
)
.
arg
(
hours
,
1
,
10
,
QChar
(
'0'
))
.
arg
(
hours
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
minutes
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
minutes
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
seconds
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
seconds
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
millisec
,
3
,
10
,
QChar
(
'0'
));
.
arg
(
millisec
,
3
,
10
,
QChar
(
'0'
));
...
@@ -1024,7 +1024,7 @@ void SubtitleModel::jsontoSubtitle(const QString &data)
...
@@ -1024,7 +1024,7 @@ void SubtitleModel::jsontoSubtitle(const QString &data)
.
arg
(
milli_2
,
2
,
10
,
QChar
(
'0'
));
.
arg
(
milli_2
,
2
,
10
,
QChar
(
'0'
));
QString
endTimeStringSRT
=
QString
(
"%1:%2:%3,%4"
)
QString
endTimeStringSRT
=
QString
(
"%1:%2:%3,%4"
)
.
arg
(
hours
,
1
,
10
,
QChar
(
'0'
))
.
arg
(
hours
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
minutes
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
minutes
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
seconds
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
seconds
,
2
,
10
,
QChar
(
'0'
))
.
arg
(
millisec
,
3
,
10
,
QChar
(
'0'
));
.
arg
(
millisec
,
3
,
10
,
QChar
(
'0'
));
...
...
Jean-Baptiste Mardelle
@mardelle
mentioned in issue
#1037 (closed)
·
Apr 09, 2021
mentioned in issue
#1037 (closed)
mentioned in issue #1037
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment