if (name != "chapter") {
toolbar->addAction(KIcon("kdenlive-zone-start"), i18n("Set zone start"), this, SLOT(slotSetZoneStart()));
toolbar->addAction(KIcon("kdenlive-zone-end"), i18n("Set zone end"), this, SLOT(slotSetZoneEnd()));
- } else m_ruler->setZone(-3, -2);
+ } else {
+ m_ruler->setZone(-3, -2);
+ }
toolbar->addAction(KIcon("media-seek-backward"), i18n("Rewind"), this, SLOT(slotRewind()));
toolbar->addAction(KIcon("media-skip-backward"), i18n("Rewind 1 frame"), this, SLOT(slotRewindOneFrame()));
spacer->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
toolbar->addWidget(spacer);
m_timePos = new TimecodeDisplay(m_monitorManager->timecode(), this);
- m_timePos->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::MinimumExpanding);
toolbar->addWidget(m_timePos);
connect(m_timePos, SIGNAL(editingFinished()), this, SLOT(slotSeek()));
if (m_overlay == NULL) return;
int pos = render->seekFramePosition();
QPoint zone = m_ruler->zone();
- if (pos == zone.x()) m_overlay->setOverlayText(i18n("In Point"));
- else if (pos == zone.y()) m_overlay->setOverlayText(i18n("Out Point"));
+ if (pos == zone.x())
+ m_overlay->setOverlayText(i18n("In Point"));
+ else if (pos == zone.y())
+ m_overlay->setOverlayText(i18n("Out Point"));
else {
if (m_currentClip) {
QString markerComment = m_currentClip->markerComment(GenTime(pos, m_monitorManager->timecode().fps()));
- if (markerComment.isEmpty()) m_overlay->setHidden(true);
- else m_overlay->setOverlayText(markerComment, false);
+ if (markerComment.isEmpty())
+ m_overlay->setHidden(true);
+ else
+ m_overlay->setOverlayText(markerComment, false);
} else m_overlay->setHidden(true);
}
}
void Monitor::updateTimecodeFormat()
{
- m_timePos->slotPrepareTimeCodeFormat(m_monitorManager->timecode());
+ m_timePos->slotUpdateTimeCodeFormat();
}
QStringList Monitor::getZoneInfo() const