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
2c8a1ad9
Commit
2c8a1ad9
authored
May 17, 2022
by
Jean-Baptiste Mardelle
Browse files
Remove deprecated method
parent
74c2e4c3
Pipeline
#177697
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/cliploadtask.cpp
View file @
2c8a1ad9
...
...
@@ -40,7 +40,6 @@ ClipLoadTask::ClipLoadTask(const ObjectId &owner, const QDomElement &xml, bool t
,
m_out
(
out
)
,
m_thumbOnly
(
thumbOnly
)
{
QObject
::
connect
(
this
,
&
ClipLoadTask
::
proposeTranscode
,
this
,
&
ClipLoadTask
::
doProposeTranscode
,
Qt
::
QueuedConnection
);
}
ClipLoadTask
::~
ClipLoadTask
()
...
...
@@ -756,14 +755,3 @@ void ClipLoadTask::abort()
}
}
}
void
ClipLoadTask
::
doProposeTranscode
(
const
QString
&
resource
)
{
QAction
*
ac
=
new
QAction
(
i18n
(
"Transcode"
),
m_object
);
QObject
::
connect
(
ac
,
&
QAction
::
triggered
,
[
resource
]()
{
pCore
->
transcodeFile
(
resource
);
});
QList
<
QAction
*>
actions
=
{
ac
};
QMetaObject
::
invokeMethod
(
pCore
.
get
(),
"displayBinMessage"
,
Qt
::
QueuedConnection
,
Q_ARG
(
QString
,
i18n
(
"Cannot get duration for file %1"
,
resource
)),
Q_ARG
(
int
,
int
(
KMessageWidget
::
Warning
)),
Q_ARG
(
QList
<
QAction
*>
,
actions
));
}
src/jobs/cliploadtask.h
View file @
2c8a1ad9
...
...
@@ -35,9 +35,6 @@ public:
protected:
void
run
()
override
;
private
slots
:
void
doProposeTranscode
(
const
QString
&
resource
);
private:
//QString cacheKey();
QDomElement
m_xml
;
...
...
@@ -49,6 +46,5 @@ private:
void
abort
();
signals:
void
proposeTranscode
(
const
QString
&
resource
);
void
taskDone
();
};
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