]> git.sesse.net Git - kdenlive/blobdiff - src/titlewidget.cpp
Fix dropframe timecode, patch from John T. Mertz
[kdenlive] / src / titlewidget.cpp
index e0e2de949f3c2b63cb2642a6c92e8cfbd0bcbba8..05c5ad72e29cffa7d4e69193738aeb0a77bec81e 100644 (file)
@@ -142,6 +142,9 @@ TitleWidget::TitleWidget(KUrl url, Timecode tc, QString projectTitlePath, Render
     m_frameHeight = render->renderHeight();
     showToolbars(TITLE_SELECT);
 
+    //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)));
 
@@ -432,7 +435,7 @@ TitleWidget::TitleWidget(KUrl url, Timecode tc, QString projectTitlePath, Render
 
     buttonBox->button(QDialogButtonBox::Ok)->setEnabled(KdenliveSettings::hastitleproducer());
        refreshTitleTemplates();
-       templateBox->setIconSize(QSize(60,60));
+       //templateBox->setIconSize(QSize(60,60));
        templateBox->clear();
        templateBox->addItem("");
        foreach (TitleTemplate t, titletemplates)
@@ -551,7 +554,7 @@ void TitleWidget::templateIndexChanged(int index )
        {
                if (lastDocumentHash!=QCryptographicHash::hash(xml().toString().toAscii(), QCryptographicHash::Md5).toHex())
                {
-                        if (KMessageBox::questionYesNo(this, i18n("Title was changed !\nDo you realy want to load a new Template?\nAll changes in this Document are lost !!")) == KMessageBox::No) return;
+                        if (KMessageBox::questionYesNo(this, i18n("Title was changed !\nDo you really want to load a new template?\nAll changes in this document are lost !!")) == KMessageBox::No) return;
                }
                loadTitle(item);
                lastDocumentHash=QCryptographicHash::hash(xml().toString().toAscii(), QCryptographicHash::Md5).toHex();