Commit 2c8a1ad9 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Remove deprecated method

parent 74c2e4c3
Pipeline #177697 canceled with stage
......@@ -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));
}
......@@ -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();
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment