Skip to content
GitLab
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
8804f807
Commit
8804f807
authored
Aug 14, 2022
by
Julius Künzel
💬
Browse files
Port QRegExp to QRegularExpression
parent
3b67b27b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/model/subtitlemodel.cpp
View file @
8804f807
...
...
@@ -25,7 +25,7 @@
#include
<QJsonArray>
#include
<QJsonDocument>
#include
<QJsonObject>
#include
<QReg
Exp
>
#include
<QReg
ularExpression
>
#include
<QTextCodec>
#include
<utility>
#if QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
...
...
@@ -186,7 +186,7 @@ void SubtitleModel::importSubtitle(const QString &filePath, int offset, bool ext
#endif
QString
line
;
QStringList
srtTime
;
QReg
Exp
rx
(
"([0-9]{1,2}):([0-9]{2})"
);
QReg
ularExpression
rx
(
"([0-9]{1,2}):([0-9]{2})"
);
QLatin1Char
separator
=
filePath
.
endsWith
(
".sbv"
)
?
QLatin1Char
(
','
)
:
QLatin1Char
(
' '
);
while
(
stream
.
readLineInto
(
&
line
))
{
line
=
line
.
trimmed
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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