]> git.sesse.net Git - kdenlive/commitdiff
Small cleanup
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 12 Jan 2009 20:29:37 +0000 (20:29 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 12 Jan 2009 20:29:37 +0000 (20:29 +0000)
svn path=/branches/KDE4/; revision=2905

src/transitionsettings.cpp

index 6c6a91e8db00f36a545a8a87ddff4c5e60c7f237..73be9931f04133db99ba8ac3bb7424bb9f16c166 100644 (file)
@@ -60,16 +60,18 @@ void TransitionSettings::updateProjectFormat(MltVideoProfile profile, Timecode t
 
 
 void TransitionSettings::slotTransitionChanged(bool reinit, bool updateCurrent) {
-    kDebug() << "// TRANSITION CHANGED, REINIT: " << reinit;
     QDomElement e = m_usedTransition->toXML().cloneNode().toElement();
     if (reinit) {
+        // Reset the transition parameters to the default one
         QDomElement newTransition = MainWindow::transitions.getEffectByName(ui.transitionList->currentText()).cloneNode().toElement();
         slotUpdateEffectParams(e, newTransition);
         emit transferParamDesc(newTransition, m_usedTransition->startPos().frames(KdenliveSettings::project_fps()), m_usedTransition->endPos().frames(KdenliveSettings::project_fps()));
     } else if (!updateCurrent) {
+        // Transition changed, update parameters dialog
         //slotUpdateEffectParams(e, e);
         effectEdit->transferParamDesc(e, m_usedTransition->startPos().frames(KdenliveSettings::project_fps()), m_usedTransition->endPos().frames(KdenliveSettings::project_fps()));
     } else {
+        // Same transition, we just want to update the parameters value
         slotUpdateEffectParams(e, e);
     }
 }