implement double clicking a sequence in the project explorer to open it

This commit is contained in:
itsmattkc
2020-01-03 21:14:27 +11:00
parent e671fb63b7
commit 3369bb53f9
4 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -26,6 +26,7 @@
#include "core.h"
#include "panel/footageviewer/footageviewer.h"
#include "panel/panelmanager.h"
#include "project/item/sequence/sequence.h"
#include "widget/menu/menushared.h"
#include "widget/projecttoolbar/projecttoolbar.h"
@@ -127,7 +128,8 @@ void ProjectPanel::ItemDoubleClickSlot(Item *item)
// Open this footage in a FootageViewer
PanelManager::instance()->MostRecentlyFocused<FootageViewerPanel>()->SetFootage(static_cast<Footage*>(item));
} else if (item->type() == Item::kSequence) {
// FIXME: Open this sequence in the Timeline
// Open this sequence in the Timeline
Sequence::Open(static_cast<Sequence*>(item));
}
}