svn path=/trunk/kdenlive/; revision=4690
int d = floor(framenumber / m_framesPer10Minutes);
int m = framenumber % m_framesPer10Minutes;
int d = floor(framenumber / m_framesPer10Minutes);
int m = framenumber % m_framesPer10Minutes;
- int framesPerMinute = round(m_realFps * 60) - m_dropFrames; //Number of frames per minute is the round of the framerate * 60 minus the number of dropped frames
-
if (m > m_dropFrames) {
framenumber += (m_dropFrames * 9 * d) + m_dropFrames * (floor((m - m_dropFrames) / (round(m_realFps * 60) - m_dropFrames)));
} else {
if (m > m_dropFrames) {
framenumber += (m_dropFrames * 9 * d) + m_dropFrames * (floor((m - m_dropFrames) / (round(m_realFps * 60) - m_dropFrames)));
} else {
if (m_maximum > m_minimum && value > m_maximum)
value = m_maximum;
if (m_maximum > m_minimum && value > m_maximum)
value = m_maximum;
- if (value == getValue()) return;
+ if (value == getValue() && !lineedit->text().isEmpty()) return;
downarrow->setEnabled(value > m_minimum);
uparrow->setEnabled(m_maximum < m_minimum || value < m_maximum);
downarrow->setEnabled(value > m_minimum);
uparrow->setEnabled(m_maximum < m_minimum || value < m_maximum);
lineedit->setText(QString::number(value));
else {
QString v = m_timecode.getTimecodeFromFrames(value);
lineedit->setText(QString::number(value));
else {
QString v = m_timecode.getTimecodeFromFrames(value);
- kDebug() << "// SETTING TO: " << value << " = " << v << "( " << m_timecode.fps();
lineedit->setText(v);
}
}
lineedit->setText(v);
}
}