X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftrackview.cpp;h=93c0e9ed4633809514f609d97a9167782685cbbd;hb=58ca041a8b3c7a88d4d1df6ad03c1299ca74956c;hp=2321374be76c49b44ae456c69798a8b751055afd;hpb=8ac18afef7cb21fe74f680019986e01ad5a4d88e;p=kdenlive diff --git a/src/trackview.cpp b/src/trackview.cpp index 2321374b..93c0e9ed 100644 --- a/src/trackview.cpp +++ b/src/trackview.cpp @@ -105,6 +105,7 @@ TrackView::TrackView(KdenliveDoc *doc, bool *ok, QWidget *parent) : connect(m_trackview, SIGNAL(trackHeightChanged()), this, SLOT(slotRebuildTrackHeaders())); connect(m_trackview, SIGNAL(tracksChanged()), this, SLOT(slotReloadTracks())); connect(m_trackview, SIGNAL(updateTrackHeaders()), this, SLOT(slotRepaintTracks())); + connect(m_trackview, SIGNAL(showTrackEffects(int, EffectsList)), this, SIGNAL(showTrackEffects(int, EffectsList))); parseDocument(m_doc->toXml()); if (m_doc->setSceneList() == -1) *ok = false; @@ -557,7 +558,8 @@ void TrackView::slotRebuildTrackHeaders() connect(header, SIGNAL(insertTrack(int)), this, SIGNAL(insertTrack(int))); connect(header, SIGNAL(renameTrack(int, QString)), this, SLOT(slotRenameTrack(int, QString))); connect(header, SIGNAL(configTrack(int)), this, SIGNAL(configTrack(int))); - connect(header, SIGNAL(addTrackInfo(const QDomElement, int)), m_trackview, SLOT(slotAddTrackEffect(const QDomElement, int))); + connect(header, SIGNAL(addTrackInfo(const QDomElement, int)), m_trackview, SLOT(slotAddTrackEffect(const QDomElement, int))); + connect(header, SIGNAL(showTrackEffects(int)), this, SLOT(slotShowTrackEffects(int))); headers_container->layout()->addWidget(header); } frame = new QFrame(this); @@ -977,4 +979,9 @@ void TrackView::updateRuler() m_ruler->update(); } +void TrackView::slotShowTrackEffects(int ix) +{ + emit showTrackEffects(m_doc->tracksCount() - ix, m_doc->getTrackEffects(ix)); +} + #include "trackview.moc"