panels: selecting a clip in the timeline automatically selects the corresponding
nodes in the nodeview
This commit is contained in:
@@ -26,9 +26,12 @@ TimelinePanel::TimelinePanel(QWidget *parent) :
|
||||
// FIXME: This won't work if there's ever more than one of this panel
|
||||
setObjectName("TimelinePanel");
|
||||
|
||||
SetTimeBasedWidget(new TimelineWidget());
|
||||
TimelineWidget* tw = new TimelineWidget();
|
||||
SetTimeBasedWidget(tw);
|
||||
|
||||
Retranslate();
|
||||
|
||||
connect(tw, &TimelineWidget::SelectionChanged, this, &TimelinePanel::SelectionChanged);
|
||||
}
|
||||
|
||||
void TimelinePanel::Clear()
|
||||
|
||||
@@ -58,6 +58,9 @@ public:
|
||||
protected:
|
||||
virtual void Retranslate() override;
|
||||
|
||||
signals:
|
||||
void SelectionChanged(const QList<Node*>& selected_blocks);
|
||||
|
||||
};
|
||||
|
||||
#endif // TIMELINE_PANEL_H
|
||||
|
||||
Reference in New Issue
Block a user