X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmainwindow.cpp;h=8004e65b6584cb73d8b2e961394eb86911624d10;hb=aa1fa33654ce7a6568c41df395f5ce5cb5bf7a12;hp=a9025b9de08887ac49a7da0f15f00149245d0556;hpb=64f67870edb1e13b9d2d654aecd8676f0a67bda8;p=kdenlive diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a9025b9d..8004e65b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -467,6 +467,8 @@ void MainWindow::connectDocument(TrackView *trackView, KdenliveDoc *doc) //chang connect(doc, SIGNAL(signalDeleteProjectClip(int)), m_projectList, SLOT(slotDeleteClip(int))); connect(doc, SIGNAL(updateClipDisplay(int)), m_projectList, SLOT(slotUpdateClip(int))); connect(doc, SIGNAL(deletTimelineClip(int)), trackView, SLOT(slotDeleteClip(int))); + connect(doc, SIGNAL(thumbsProgress(KUrl, int)), this, SLOT(slotGotProgressInfo(KUrl, int))); + connect(trackView, SIGNAL(clipItemSelected(ClipItem*)), effectStack, SLOT(slotClipItemSelected(ClipItem*))); connect(effectStack, SIGNAL(updateClipEffect(ClipItem*, QDomElement, QDomElement)), trackView->projectView(), SLOT(slotUpdateClipEffect(ClipItem*, QDomElement, QDomElement))); connect(effectStack, SIGNAL(removeEffect(ClipItem*, QDomElement)), trackView->projectView(), SLOT(slotDeleteEffect(ClipItem*, QDomElement))); @@ -515,23 +517,17 @@ void MainWindow::slotPreferences() //connect( dialog, SIGNAL(settingsChanged()), this, SLOT(updateConfiguration()) ); dialog->show(); } -void MainWindow::customEvent ( QEvent * event ){ - if (event->type()==10005){ - ProgressEvent* p=(ProgressEvent*) event; - statusProgressBar->setValue(p->value()); - if (p->value()>0) { - statusLabel->setText(tr("Creating Audio Thumbs")); - statusProgressBar->setVisible(true); - } - else { - statusLabel->setText(""); - statusProgressBar->setVisible(false); - } - } - if (event->type()==10010){ - EffectEvent* p=(EffectEvent*) event; - slotAddEffect(p->xml(), p->pos(), p->track()); - } +void MainWindow::slotGotProgressInfo( KUrl url, int progress) { + statusProgressBar->setValue(progress); + if (progress>0) { + statusLabel->setText(tr("Creating Audio Thumbs")); + statusProgressBar->setVisible(true); + } + else { + statusLabel->setText(""); + statusProgressBar->setVisible(false); + } } + #include "mainwindow.moc"