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
ad339ef5
Commit
ad339ef5
authored
Jun 25, 2021
by
Jean-Baptiste Mardelle
Browse files
minor remap fixes
parent
cedc847d
Pipeline
#67466
passed with stage
in 17 minutes and 58 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
ad339ef5
...
...
@@ -4584,8 +4584,13 @@ void Bin::remapCurrent()
consumer
.
run
();
Fun
undo
=
[]()
{
return
true
;
};
Fun
redo
=
[]()
{
return
true
;
};
auto
id
=
ClipCreator
::
createClipFromFile
(
dir
.
absoluteFilePath
(
renderName
),
getCurrentFolder
(),
pCore
->
projectItemModel
(),
undo
,
redo
);
std
::
function
<
void
(
const
QString
&
)
>
callBack
=
[
this
](
const
QString
&
binId
)
{
selectClipById
(
binId
);
};
auto
id
=
ClipCreator
::
createClipFromFile
(
dir
.
absoluteFilePath
(
renderName
),
getCurrentFolder
(),
pCore
->
projectItemModel
(),
undo
,
redo
,
callBack
);
pCore
->
pushUndo
(
undo
,
redo
,
i18n
(
"Add clip remap"
));
selectClipById
(
id
);
}
}
src/dialogs/timeremap.cpp
View file @
ad339ef5
...
...
@@ -56,7 +56,6 @@ RemapView::RemapView(QWidget *parent)
m_offset
=
qCeil
(
m_lineHeight
/
4
);
setFixedHeight
(
size
*
4
);
setSizePolicy
(
QSizePolicy
(
QSizePolicy
::
MinimumExpanding
,
QSizePolicy
::
Fixed
));
setEnabled
(
false
);
}
void
RemapView
::
updateInPos
(
int
pos
)
...
...
@@ -865,11 +864,13 @@ TimeRemap::TimeRemap(QWidget *parent)
connect
(
button_next
,
&
QToolButton
::
clicked
,
m_view
,
&
RemapView
::
goNext
);
connect
(
button_prev
,
&
QToolButton
::
clicked
,
m_view
,
&
RemapView
::
goPrev
);
connect
(
move_next
,
&
QCheckBox
::
toggled
,
m_view
,
&
RemapView
::
toggleMoveNext
);
setEnabled
(
false
);
}
void
TimeRemap
::
setClip
(
std
::
shared_ptr
<
ProjectClip
>
clip
,
int
in
,
int
out
)
{
if
(
!
clip
->
statusReady
()
||
clip
->
clipType
()
!=
ClipType
::
Playlist
)
{
qDebug
()
<<
"===== CLIP NOT READY; TYPE; "
<<
clip
->
clipType
();
m_clip
=
nullptr
;
setEnabled
(
false
);
return
;
...
...
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