]> git.sesse.net Git - kdenlive/blobdiff - src/positionedit.cpp
Add crop end info to clip info dialog (based on a patch by Till Theato):
[kdenlive] / src / positionedit.cpp
index 7a8208bdaebfad4301f3c28b69a346060162fa65..7c27845b93afaaee85e459d8caa6ffb651c3f9e2 100644 (file)
@@ -31,7 +31,9 @@ PositionEdit::PositionEdit(const QString name, int pos, int min, int max, const
     connect(m_ui.krestrictedline, SIGNAL(editingFinished()), this, SLOT(slotUpdatePosition()));
     m_ui.horizontalSlider->setValue(pos);
     if (KdenliveSettings::frametimecode()) {
-        m_ui.krestrictedline->setInputMask("000000000000");
+        QValidator *valid = new QIntValidator();
+        m_ui.krestrictedline->setInputMask("");
+        m_ui.krestrictedline->setValidator(valid);
         m_ui.krestrictedline->setText(QString::number(pos));
     } else m_ui.krestrictedline->setText(m_tc.getTimecodeFromFrames(pos));
 }