]> git.sesse.net Git - kdenlive/blobdiff - src/customruler.cpp
Start porting timeline to QGraphicsView
[kdenlive] / src / customruler.cpp
index f1edad9a2e527a88ea812f3db0ff1d0a16228f13..4b26427cfa80019736f62805796bf4f0cde8db6e 100644 (file)
@@ -1,3 +1,21 @@
+/***************************************************************************
+ *   Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ *   This program is distributed in the hope that it will be useful,       *
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+ *   GNU General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
+ ***************************************************************************/
 
 #include <QMouseEvent>
 #include <QStylePainter>
@@ -88,6 +106,7 @@ void CustomRuler::mouseMoveEvent ( QMouseEvent * event )
 void CustomRuler::slotNewValue ( int _value )
 {
   m_cursorPosition = _value / pixelPerMark();
+  emit cursorMoved(m_cursorPosition / FRAME_SIZE);
   KRuler::slotNewValue(_value);
 }