X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frecmonitor.cpp;h=ddfed5652e3958608344288cb3319e4587e8eb39;hb=5a1e2dee112f770f3b2bbacc9ef837a233a3bb60;hp=5671ccf4e5afa6edda6eade360d6e4bc471fb887;hpb=6441e2cefe74d8e0b23e19a76fa0e038ce5e5118;p=kdenlive diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index 5671ccf4..ddfed565 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -142,7 +142,9 @@ RecMonitor::RecMonitor(QString name, QWidget *parent) : RecMonitor::~RecMonitor() { +#if KDE_IS_VERSION(4,2,0) m_spaceTimer.stop(); +#endif delete m_captureProcess; delete m_displayProcess; } @@ -443,7 +445,9 @@ void RecMonitor::slotRecord() m_isCapturing = true; m_didCapture = true; m_captureProcess->write("c\n", 3); +#if KDE_IS_VERSION(4,2,0) m_spaceTimer.start(); +#endif return; } if (m_captureProcess->state() == QProcess::NotRunning) { @@ -585,9 +589,9 @@ void RecMonitor::slotProcessStatus(QProcess::ProcessState status) else video_frame->setPixmap(mergeSideBySide(KIcon("video-display").pixmap(QSize(50, 50)), i18n("Press record button\nto start screen capture\nFiles will be saved in:\n%1", KdenliveSettings::capturefolder()))); } m_isCapturing = false; - m_spaceTimer.stop(); - + #if KDE_IS_VERSION(4,2,0) + m_spaceTimer.stop(); // update free space info slotUpdateFreeSpace(); #endif @@ -702,4 +706,5 @@ void RecMonitor::slotReadDvgrabInfo() m_dvinfo.updateGeometry(); } -#include "recmonitor.moc" \ No newline at end of file +#include "recmonitor.moc" +