]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.cpp
- Add ability to configure the default duration for title clips.
[kdenlive] / src / titlewidget.cpp
index d79851abf7f404ad5779438cfc66c5b4856c1e38..612d133eb0bc19c8862168ab7068d80672cd6bc6 100644 (file)
@@ -144,9 +144,7 @@ TitleWidget::TitleWidget(KUrl url, Timecode tc, QString projectTitlePath, Render
 
     //If project is drop frame, set the input mask as such.
     title_duration->setInputMask(m_tc.inputMask());
-
-    //TODO: get default title duration instead of hardcoded one
-    title_duration->setText(m_tc.getTimecode(GenTime(5000 / 1000.0)));
+    title_duration->setText(m_tc.reformatSeparators(KdenliveSettings::title_duration()));
 
     connect(backgroundColor, SIGNAL(clicked()), this, SLOT(slotChangeBackground())) ;
     connect(backgroundAlpha, SIGNAL(valueChanged(qreal, bool)), this, SLOT(slotChangeBackground())) ;