Commit 322a21e5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Add deselect option, patch by Harald Albrecht

REVIEW: 128923
parent da3539c4
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kdenlive" version="146" translationDomain="kdenlive">
<kpartgui name="kdenlive" version="147" translationDomain="kdenlive">
<MenuBar>
<Menu name="file" >
<Action name="dvd_wizard" />
......@@ -36,6 +36,7 @@
<Separator />
<Action name="select_track" />
<Action name="select_all_tracks" />
<Action name="unselect_all_tracks" />
</Menu>
<Separator />
<Action name="bin_view_mode" />
......
......@@ -1404,6 +1404,11 @@ void MainWindow::setupActions()
selectAll->setShortcutContext(Qt::WidgetWithChildrenShortcut);
timelineActions->addAction(QStringLiteral("select_all_tracks"), selectAll);
QAction *unselectAll = KStandardAction::deselect(this, SLOT(slotUnselectAllTracks()), this);
unselectAll->setIcon(KoIconUtils::themedIcon(QStringLiteral("kdenlive-unselect-all")));
unselectAll->setShortcutContext(Qt::WidgetWithChildrenShortcut);
timelineActions->addAction(QStringLiteral("unselect_all_tracks"), unselectAll);
kdenliveCategoryMap.insert(QStringLiteral("timeline"), timelineActions);
// Cached data management
......@@ -2359,6 +2364,13 @@ void MainWindow::slotSelectAllTracks()
pCore->projectManager()->currentTimeline()->projectView()->slotSelectAllClips();
}
void MainWindow::slotUnselectAllTracks()
{
pCore->monitorManager()->activateMonitor(Kdenlive::ProjectMonitor);
if (pCore->projectManager()->currentTimeline())
pCore->projectManager()->currentTimeline()->projectView()->clearSelection();
}
void MainWindow::slotEditGuide(int pos, QString text)
{
if (pCore->projectManager()->currentTimeline())
......
......@@ -379,6 +379,7 @@ private slots:
void slotSelectTrack();
/** @brief Select all clips in timeline. */
void slotSelectAllTracks();
void slotUnselectAllTracks();
void slotGetNewLumaStuff();
void slotGetNewTitleStuff();
void slotGetNewRenderStuff();
......
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