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
b8a83d2b
Commit
b8a83d2b
authored
Apr 28, 2017
by
Laurent Montel
😁
Browse files
Use QLatin1Char(...)
parent
ec690396
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
b8a83d2b
...
...
@@ -3434,7 +3434,7 @@ void Bin::slotLoadClipMarkers(const QString &id)
QList
<
CommentedTime
>
markersList
;
foreach
(
const
QString
&
line
,
lines
)
{
markerText
.
clear
();
values
=
line
.
split
(
'\t'
,
QString
::
SkipEmptyParts
);
values
=
line
.
split
(
QLatin1Char
(
'\t'
)
,
QString
::
SkipEmptyParts
);
double
time1
=
values
.
at
(
0
).
toDouble
(
&
ok
);
double
time2
=
-
1
;
if
(
!
ok
)
{
...
...
src/bin/projectclip.cpp
View file @
b8a83d2b
...
...
@@ -1294,7 +1294,7 @@ void ProjectClip::updateFfmpegProgress()
return
;
}
QString
result
=
callerProcess
->
readAllStandardOutput
();
const
QStringList
lines
=
result
.
split
(
'\n'
);
const
QStringList
lines
=
result
.
split
(
QLatin1Char
(
'\n'
)
)
;
for
(
const
QString
&
data
:
lines
)
{
if
(
data
.
startsWith
(
QStringLiteral
(
"out_time_ms"
)))
{
long
ms
=
data
.
section
(
QLatin1Char
(
'='
),
1
).
toLong
();
...
...
src/dialogs/kdenlivesettingsdialog.cpp
View file @
b8a83d2b
...
...
@@ -565,10 +565,10 @@ void KdenliveSettingsDialog::slotReadAudioDevices()
QString
result
=
QString
(
m_readProcess
.
readAllStandardOutput
());
//qCDebug(KDENLIVE_LOG) << "// / / / / / READING APLAY: ";
//qCDebug(KDENLIVE_LOG) << result;
const
QStringList
lines
=
result
.
split
(
'\n'
);
const
QStringList
lines
=
result
.
split
(
QLatin1Char
(
'\n'
)
)
;
for
(
const
QString
&
data
:
lines
)
{
////qCDebug(KDENLIVE_LOG) << "// READING LINE: " << data;
if
(
!
data
.
startsWith
(
' '
)
&&
data
.
count
(
':'
)
>
1
)
{
if
(
!
data
.
startsWith
(
QLatin1Char
(
' '
)
)
&&
data
.
count
(
QLatin1Char
(
':'
)
)
>
1
)
{
QString
card
=
data
.
section
(
QLatin1Char
(
':'
),
0
,
0
).
section
(
QLatin1Char
(
' '
),
-
1
);
QString
device
=
data
.
section
(
QLatin1Char
(
':'
),
1
,
1
).
section
(
QLatin1Char
(
' '
),
-
1
);
m_configSdl
.
kcfg_audio_device
->
addItem
(
data
.
section
(
QLatin1Char
(
':'
),
-
1
).
simplified
(),
"plughw:"
+
card
+
QLatin1Char
(
','
)
+
device
);
...
...
src/effectstack/graphicsscenerectmove.cpp
View file @
b8a83d2b
...
...
@@ -174,7 +174,7 @@ void MyTextItem::updateGeometry(int, int, int)
double
lineSpacing
=
data
(
TitleDocument
::
LineSpacing
).
toInt
()
+
metrics
.
lineSpacing
();
// Calculate line width
QStringList
lines
=
text
.
split
(
'\n'
);
QStringList
lines
=
text
.
split
(
QLatin1Char
(
'\n'
)
)
;
double
linePos
=
metrics
.
ascent
();
QRectF
bounding
=
boundingRect
();
/*if (lines.count() > 0) {
...
...
src/effectstack/parametercontainer.cpp
View file @
b8a83d2b
...
...
@@ -252,14 +252,14 @@ ParameterContainer::ParameterContainer(const QDomElement &effect, const ItemInfo
listitems
=
items
.
split
(
QLatin1Char
(
';'
));
if
(
listitems
.
count
()
==
1
)
{
// probably custom effect created before change to ';' as separator
listitems
=
pa
.
attribute
(
QStringLiteral
(
"paramlist"
)).
split
(
','
);
listitems
=
pa
.
attribute
(
QStringLiteral
(
"paramlist"
)).
split
(
QLatin1Char
(
','
)
)
;
}
QDomElement
list
=
pa
.
firstChildElement
(
QStringLiteral
(
"paramlistdisplay"
));
QStringList
listitemsdisplay
;
if
(
!
list
.
isNull
())
{
listitemsdisplay
=
i18n
(
list
.
text
().
toUtf8
().
data
()).
split
(
','
);
listitemsdisplay
=
i18n
(
list
.
text
().
toUtf8
().
data
()).
split
(
QLatin1Char
(
','
)
)
;
}
else
{
listitemsdisplay
=
i18n
(
pa
.
attribute
(
"paramlistdisplay"
).
toUtf8
().
data
()).
split
(
','
);
listitemsdisplay
=
i18n
(
pa
.
attribute
(
"paramlistdisplay"
).
toUtf8
().
data
()).
split
(
QLatin1Char
(
','
)
)
;
}
if
(
listitemsdisplay
.
count
()
!=
listitems
.
count
())
{
listitemsdisplay
=
listitems
;
...
...
src/mltcontroller/clippropertiescontroller.cpp
View file @
b8a83d2b
...
...
@@ -975,7 +975,7 @@ void ClipPropertiesController::slotFillMeta(QTreeWidget *tree)
QString
res
=
p
.
readAllStandardOutput
();
m_controller
->
setProperty
(
QStringLiteral
(
"kdenlive:exiftool"
),
1
);
QTreeWidgetItem
*
exif
=
nullptr
;
QStringList
list
=
res
.
split
(
'\n'
);
QStringList
list
=
res
.
split
(
QLatin1Char
(
'\n'
)
)
;
foreach
(
const
QString
&
tagline
,
list
)
{
if
(
tagline
.
startsWith
(
QLatin1String
(
"-File"
))
||
tagline
.
startsWith
(
QLatin1String
(
"-ExifTool"
)))
{
continue
;
...
...
@@ -1005,7 +1005,7 @@ void ClipPropertiesController::slotFillMeta(QTreeWidget *tree)
m_controller
->
setProperty
(
QStringLiteral
(
"kdenlive:exiftool"
),
1
);
}
QTreeWidgetItem
*
exif
=
nullptr
;
QStringList
list
=
res
.
split
(
'\n'
);
QStringList
list
=
res
.
split
(
QLatin1Char
(
'\n'
)
)
;
foreach
(
const
QString
&
tagline
,
list
)
{
if
(
m_type
!=
Image
&&
!
tagline
.
startsWith
(
QLatin1String
(
"-H264"
)))
{
continue
;
...
...
src/titler/titledocument.cpp
View file @
b8a83d2b
...
...
@@ -644,7 +644,7 @@ QString TitleDocument::rectFToString(const QRectF &c)
QRectF
TitleDocument
::
stringToRect
(
const
QString
&
s
)
{
QStringList
l
=
s
.
split
(
','
);
QStringList
l
=
s
.
split
(
QLatin1Char
(
','
)
)
;
if
(
l
.
size
()
<
4
)
{
return
QRectF
();
}
...
...
@@ -653,7 +653,7 @@ QRectF TitleDocument::stringToRect(const QString &s)
QColor
TitleDocument
::
stringToColor
(
const
QString
&
s
)
{
QStringList
l
=
s
.
split
(
','
);
QStringList
l
=
s
.
split
(
QLatin1Char
(
','
)
)
;
if
(
l
.
size
()
<
4
)
{
return
QColor
();
}
...
...
@@ -675,7 +675,7 @@ QTransform TitleDocument::stringToTransform(const QString &s)
QList
<
QVariant
>
TitleDocument
::
stringToList
(
const
QString
&
s
)
{
QStringList
l
=
s
.
split
(
','
);
QStringList
l
=
s
.
split
(
QLatin1Char
(
','
)
)
;
if
(
l
.
size
()
<
3
)
{
return
QList
<
QVariant
>
();
}
...
...
Write
Preview
Markdown
is supported
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