]> git.sesse.net Git - kdenlive/blobdiff - src/smallruler.cpp
const ref
[kdenlive] / src / smallruler.cpp
index b476c0384814153ee16f4b0c9603d28d5f027af1..cc5d268066d3d46dc1ddd184af9ee8e31a2e150e 100644 (file)
@@ -108,7 +108,7 @@ void SmallRuler::setZone(int start, int end)
     updatePixmap();
 }
 
-void SmallRuler::setMarkers(QList < CommentedTime > list)
+void SmallRuler::setMarkers(const QList<CommentedTime> &list)
 {
     m_markers = list;
     updatePixmap();
@@ -122,6 +122,7 @@ QPoint SmallRuler::zone()
 // virtual
 void SmallRuler::mousePressEvent(QMouseEvent * event)
 {
+    m_render->setActiveMonitor();
     const int pos = event->x() / m_scale;
     if (event->button() == Qt::RightButton) {
         // Right button clicked, move selection zone