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
ecd97df6
Commit
ecd97df6
authored
Jun 05, 2020
by
Vincent Pinon
Committed by
Vincent Pinon
Jun 06, 2020
Browse files
Fix compile warnings
parent
9719182b
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/buttonparamwidget.cpp
View file @
ecd97df6
...
...
@@ -56,7 +56,7 @@ ButtonParamWidget::ButtonParamWidget(std::shared_ptr<AssetParameterModel> model,
#endif
QString
conditionalInfo
;
for
(
const
QVariant
jobElement
:
filterData
)
{
for
(
const
QVariant
&
jobElement
:
filterData
)
{
QStringList
d
=
jobElement
.
toStringList
();
if
(
d
.
size
()
==
2
)
{
if
(
d
.
at
(
0
)
==
QLatin1String
(
"conditionalinfo"
))
{
...
...
@@ -118,7 +118,7 @@ ButtonParamWidget::ButtonParamWidget(std::shared_ptr<AssetParameterModel> model,
}
std
::
unordered_map
<
QString
,
QVariant
>
fParams
;
std
::
unordered_map
<
QString
,
QString
>
fData
;
for
(
const
QVariant
jobElement
:
filterData
)
{
for
(
const
QVariant
&
jobElement
:
filterData
)
{
QStringList
d
=
jobElement
.
toStringList
();
if
(
d
.
size
()
==
2
)
fData
.
insert
({
d
.
at
(
0
),
d
.
at
(
1
)});
...
...
src/audiomixer/mixermanager.cpp
View file @
ecd97df6
...
...
@@ -37,14 +37,6 @@
const
double
log_factor
=
1.0
/
log10
(
1.0
/
127
);
static
inline
double
levelToDB
(
double
level
)
{
if
(
level
<=
0
)
{
return
-
100
;
}
return
100
*
(
1.0
-
log10
(
level
)
*
log_factor
);
}
MixerManager
::
MixerManager
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
m_masterMixer
(
nullptr
)
...
...
src/mainwindow.cpp
View file @
ecd97df6
...
...
@@ -1378,7 +1378,7 @@ void MainWindow::setupActions()
overlayAudioInfo
->
setEnabled
(
toggled
);
});
#if LIBMLT_VERSION_INT >=
ML
T_VERSION_
PREVIEW_SCALE
#if LIBMLT_VERSION_INT >=
Q
T_VERSION_
CHECK(6,20,0)
// Monitor resolution scaling
m_scaleGroup
=
new
QActionGroup
(
this
);
m_scaleGroup
->
setExclusive
(
true
);
...
...
src/monitor/glwidget.cpp
View file @
ecd97df6
...
...
@@ -1834,7 +1834,7 @@ void GLWidget::setConsumerProperty(const QString &name, const QString &value)
void
GLWidget
::
updateScaling
()
{
#if LIBMLT_VERSION_INT >=
ML
T_VERSION_
PREVIEW_SCALE
#if LIBMLT_VERSION_INT >=
Q
T_VERSION_
CHECK(6,20,0)
int
previewHeight
=
pCore
->
getCurrentFrameSize
().
height
();
switch
(
KdenliveSettings
::
previewScaling
())
{
case
2
:
...
...
src/titler/titlewidget.cpp
View file @
ecd97df6
...
...
@@ -64,10 +64,12 @@ const int IMAGEITEM = 7;
const
int
RECTITEM
=
3
;
const
int
TEXTITEM
=
8
;
/*
const int NOEFFECT = 0;
const int BLUREFFECT = 1;
const int SHADOWEFFECT = 2;
const int TYPEWRITEREFFECT = 3;
*/
void
TitleWidget
::
refreshTemplateBoxContents
()
{
...
...
src/utils/thumbnailcache.cpp
View file @
ecd97df6
...
...
@@ -310,7 +310,7 @@ QStringList ThumbnailCache::getAudioKey(const QString &binId, bool *ok)
}
QStringList
streamsList
;
QStringList
streamIndexes
=
streams
.
split
(
QLatin1Char
(
';'
));
for
(
const
QString
st
:
streamIndexes
)
{
for
(
const
QString
&
st
:
streamIndexes
)
{
streamsList
<<
QString
(
"%1_%2.png"
).
arg
(
binClip
->
hash
()).
arg
(
st
);
}
return
streamsList
;
...
...
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