]> git.sesse.net Git - kdenlive/blobdiff - src/customruler.cpp
Rework monitor & timeline UI, and send profile to renderer
[kdenlive] / src / customruler.cpp
index 58f6c3d76f8d9c489d6b4bdc086a814d9293a591..e7bd20e5e4d9093819a5a7e6895b3c16376c32fd 100644 (file)
@@ -90,6 +90,7 @@ CustomRuler::CustomRuler(Timecode tc, CustomTrackView *parent)
 
 // virtual
 void CustomRuler::mousePressEvent(QMouseEvent * event) {
+    m_view->activateMonitor();
     int pos = (event->x() + offset()) / pixelPerMark() / FRAME_SIZE;
     m_moveCursor = RULER_CURSOR;
     if (event->y() > 10) {
@@ -117,11 +118,11 @@ void CustomRuler::mouseMoveEvent(QMouseEvent * event) {
     update();
 }
 
-int CustomRuler::inPoint() {
+int CustomRuler::inPoint() const {
     return m_zoneStart;
 }
 
-int CustomRuler::outPoint() {
+int CustomRuler::outPoint() const {
     return m_zoneEnd;
 }