X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmonitor.cpp;h=5daa2c771807229ff38e3ea2aca6ad00ac90c284;hb=6e140f856eeee8a9fd21797b711e93c0846d88fe;hp=cafe772bba346c8d1f3b17dacf677e9d8b0fccca;hpb=0b424c6157f34294423caf4014361221519d393e;p=kdenlive diff --git a/src/monitor.cpp b/src/monitor.cpp index cafe772b..5daa2c77 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -186,7 +186,14 @@ void Monitor::setupMenu(QMenu *goMenu, QAction *playZone, QAction *loopZone, QMe showTips->setCheckable(true); connect(showTips, SIGNAL(toggled(bool)), this, SLOT(slotSwitchMonitorInfo(bool))); showTips->setChecked(KdenliveSettings::displayMonitorInfo()); + + QAction *dropFrames = m_contextMenu->addAction(KIcon(), i18n("Real time (drop frames)")); + dropFrames->setCheckable(true); + dropFrames->setChecked(true); + connect(dropFrames, SIGNAL(toggled(bool)), this, SLOT(slotSwitchDropFrames(bool))); + m_configMenu->addAction(showTips); + m_configMenu->addAction(dropFrames); } @@ -734,6 +741,11 @@ void Monitor::setClipZone(QPoint pos) m_currentClip->setZone(pos); } +void Monitor::slotSwitchDropFrames(bool show) +{ + render->setDropFrames(show); +} + void Monitor::slotSwitchMonitorInfo(bool show) { KdenliveSettings::setDisplayMonitorInfo(show); @@ -748,6 +760,7 @@ void Monitor::slotSwitchMonitorInfo(bool show) } } + MonitorRefresh::MonitorRefresh(QWidget* parent) : \ QWidget(parent), m_renderer(NULL)