http://www.kdenlive.org/mantis/view.php?id=1705
svn path=/trunk/kdenlive/; revision=4646
void Monitor::resetProfile(const QString profile)
{
void Monitor::resetProfile(const QString profile)
{
+ m_timePos->updateTimeCode(m_monitorManager->timecode());
if (render == NULL) return;
render->resetProfile(profile);
}
if (render == NULL) return;
render->resetProfile(profile);
}
setTimeCodeFormat(KdenliveSettings::frametimecode());
}
setTimeCodeFormat(KdenliveSettings::frametimecode());
}
+void TimecodeDisplay::updateTimeCode(Timecode t)
+{
+ m_timecode = t;
+ setTimeCodeFormat(KdenliveSettings::frametimecode());
+}
+
void TimecodeDisplay::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Up)
void TimecodeDisplay::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Up)
/** @brief Returs the widget's timecode object. */
Timecode timecode() const;
/** @brief Returs the widget's timecode object. */
Timecode timecode() const;
/** @brief Sets value's format to frames or HH:MM:SS:FF according to @param frametimecode.
* @param frametimecode true = frames, false = HH:MM:SS:FF */
void setTimeCodeFormat(bool frametimecode);
/** @brief Sets value's format to frames or HH:MM:SS:FF according to @param frametimecode.
* @param frametimecode true = frames, false = HH:MM:SS:FF */
void setTimeCodeFormat(bool frametimecode);
+ /** @brief Sets timecode for current project.
+ * @param t the new timecode */
+ void updateTimeCode(Timecode t);
+
private:
/** timecode for widget */
Timecode m_timecode;
private:
/** timecode for widget */
Timecode m_timecode;