From: Alberto Villa Date: Wed, 31 Mar 2010 13:50:06 +0000 (+0000) Subject: - Add ability to configure the default duration for title clips. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e6e8f38a4631c6d67b63304490e32ce57cf644c7;p=kdenlive - Add ability to configure the default duration for title clips. - Cleanup (courtesy of Qt Creator). Submitted by: Till Theato svn path=/trunk/kdenlive/; revision=4365 --- diff --git a/src/kdenlivesettings.kcfg b/src/kdenlivesettings.kcfg index 9863dc38..7ccf949c 100644 --- a/src/kdenlivesettings.kcfg +++ b/src/kdenlivesettings.kcfg @@ -32,6 +32,11 @@ 00:00:05:00 + + + + 00:00:05:00 + diff --git a/src/titlewidget.cpp b/src/titlewidget.cpp index d79851ab..612d133e 100644 --- a/src/titlewidget.cpp +++ b/src/titlewidget.cpp @@ -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())) ; diff --git a/src/widgets/configmisc_ui.ui b/src/widgets/configmisc_ui.ui index 37b9d069..6374dbf5 100644 --- a/src/widgets/configmisc_ui.ui +++ b/src/widgets/configmisc_ui.ui @@ -1,7 +1,8 @@ - + + ConfigMisc_UI - - + + 0 0 @@ -9,61 +10,72 @@ 359 - - - - + + + + Open last project on startup - - - + + + Crash recovery (automatic backup) - - - + + + Open projects in new tabs - - - + + + Default Durations - - - - + + + + Color clips - - - + + + 99:99:99:99; - - ::: - - - - + + + Image clips - - - + + + + 99:99:99:99; + + + + + + + Title clips + + + + + + 99:99:99:99; @@ -71,85 +83,85 @@ - - - + + + Default Profile - - - - + + + + Profile - - + + - - - - - + + + + + Size: - - - + + + 720x576 - - - + + + Frame rate: - - - + + + 25/1 - - - + + + Aspect ratio: - - - + + + 59/54 - - - + + + Display ratio: - - - + + + 4/3 - - - + + + Interlaced @@ -157,19 +169,19 @@ - - - + + + Video tracks - - - + + + Qt::Horizontal - + 13 25 @@ -177,19 +189,19 @@ - - - + + + Audio tracks - + - + Qt::Vertical - + 20 40 @@ -197,15 +209,15 @@ - - + + - - + + - - - + + + Use KDE job tracking for render jobs @@ -213,16 +225,21 @@ - - KComboBox - QComboBox -
kcombobox.h
-
KIntSpinBox QSpinBox
knuminput.h
+ + KLineEdit + QLineEdit +
klineedit.h
+
+ + KComboBox + QComboBox +
kcombobox.h
+
KRestrictedLine KLineEdit