[Kdenlive-devel] Compile fix for kdelibs5 4.1 (was Re: kdelibs5 version dependency)

Mikko Rapeli mikko.rapeli at iki.fi
Tue Sep 29 08:32:33 UTC 2009


Here's another one.

I don't know if this is related older kdelibs, but on Lenny kdenlive cursor
doesn't go to the end of timeline. I haven't seen similar things on Debian
unstable. Here's what that looks like:
http://mcfrisk.kapsi.fi/temp/kdenlive_on_lenny_cursor_bug.jpg

-Mikko

Index: src/recmonitor.cpp
===================================================================
--- src/recmonitor.cpp	(revision 3962)
+++ src/recmonitor.cpp	(working copy)
@@ -142,7 +142,9 @@
 
 RecMonitor::~RecMonitor()
 {
+#if KDE_IS_VERSION(4,2,0)
     m_spaceTimer.stop();
+#endif
     delete m_captureProcess;
     delete m_displayProcess;
 }
@@ -443,7 +445,9 @@
         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 @@
             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;
+#if KDE_IS_VERSION(4,2,0)
         m_spaceTimer.stop();
 
-#if KDE_IS_VERSION(4,2,0)
         // update free space info
         slotUpdateFreeSpace();
 #endif
@@ -702,4 +706,4 @@
     m_dvinfo.updateGeometry();
 }
 
-#include "recmonitor.moc"
\ No newline at end of file
+#include "recmonitor.moc"




More information about the Kdenlive mailing list