void StopmotionWidget::slotUpdateOverlayEffect(QAction* act)
{
- if (act) m_effectIndex = act->data().toInt();
+ if (act)
+ m_effectIndex = act->data().toInt();
KdenliveSettings::setStopmotioneffect(m_effectIndex);
slotUpdateOverlay();
}
void StopmotionWidget::reloadOverlay()
{
- QString path = getPathForFrame(m_sequenceFrame - 1);
+ const QString path = getPathForFrame(m_sequenceFrame - 1);
if (!QFile::exists(path)) {
log_box->insertItem(-1, i18n("No previous frame found"));
log_box->setCurrentIndex(0);
m_sequenceFrame++;
button_addsequence->setEnabled(true);
if (capture_interval->isChecked()) {
- if (KdenliveSettings::sm_prenotify()) QTimer::singleShot((KdenliveSettings::captureinterval() - KdenliveSettings::sm_notifytime()) * 1000, this, SLOT(slotPreNotify()));
+ if (KdenliveSettings::sm_prenotify())
+ QTimer::singleShot((KdenliveSettings::captureinterval() - KdenliveSettings::sm_notifytime()) * 1000, this, SLOT(slotPreNotify()));
m_intervalTimer.start();
}
- else m_captureAction->setChecked(false);
+ else
+ m_captureAction->setChecked(false);
}
void StopmotionWidget::slotPreNotify()
void StopmotionWidget::slotPrepareThumbs()
{
- if (m_filesList.isEmpty()) return;
+ if (m_filesList.isEmpty())
+ return;
QString path = m_filesList.takeFirst();
emit doCreateThumbs(QImage(path), SlideshowClip::getFrameNumberFromPath(path));