Commit e7c7a838 authored by Akhil K Gangadharan's avatar Akhil K Gangadharan

Remove method slotInsertZoneToProjectBin, use instead slotInsertZoneToTree

parent 6a863568
...@@ -209,9 +209,7 @@ Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *paren ...@@ -209,9 +209,7 @@ Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *paren
connect(m_recManager, &RecManager::warningMessage, this, &Monitor::warningMessage); connect(m_recManager, &RecManager::warningMessage, this, &Monitor::warningMessage);
connect(m_recManager, &RecManager::addClipToProject, this, &Monitor::addClipToProject); connect(m_recManager, &RecManager::addClipToProject, this, &Monitor::addClipToProject);
QAction *insertAction = new QAction(QIcon::fromTheme(QStringLiteral("document-new")), i18n("Insert Zone to Project Bin"), this); m_toolbar->addAction(manager->getAction(QStringLiteral("insert_project_tree")));
connect(insertAction, &QAction::triggered, this, &Monitor::slotInsertZoneToProjectBin);
m_toolbar->addAction(insertAction);
m_toolbar->addSeparator(); m_toolbar->addSeparator();
} }
...@@ -1420,16 +1418,6 @@ void Monitor::slotSaveZone() ...@@ -1420,16 +1418,6 @@ void Monitor::slotSaveZone()
// render->saveZone(pCore->currentDoc()->projectDataFolder(), m_ruler->zone()); // render->saveZone(pCore->currentDoc()->projectDataFolder(), m_ruler->zone());
} }
void Monitor::slotInsertZoneToProjectBin()
{
if (!isActive() || currentController() == nullptr) {
return;
}
QPoint info = getZoneInfo();
QString id;
pCore->projectItemModel()->requestAddBinSubClip(id, info.x(), info.y(), QString(), activeClipId());
}
void Monitor::setCustomProfile(const QString &profile, const Timecode &tc) void Monitor::setCustomProfile(const QString &profile, const Timecode &tc)
{ {
// TODO or deprecate // TODO or deprecate
......
...@@ -249,7 +249,6 @@ private slots: ...@@ -249,7 +249,6 @@ private slots:
void slotSetVolume(int volume); void slotSetVolume(int volume);
void slotEditMarker(); void slotEditMarker();
void slotExtractCurrentZone(); void slotExtractCurrentZone();
void slotInsertZoneToProjectBin();
void onFrameDisplayed(const SharedFrame &frame); void onFrameDisplayed(const SharedFrame &frame);
void slotStartDrag(); void slotStartDrag();
void setZoom(); void setZoom();
......
Markdown is supported
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