]> git.sesse.net Git - kdenlive/commitdiff
Don't forget to remove visual tips before deleting them, avoiding a complete repaint
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 26 Aug 2009 15:57:59 +0000 (15:57 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 26 Aug 2009 15:57:59 +0000 (15:57 +0000)
svn path=/trunk/kdenlive/; revision=3837

src/customtrackview.cpp

index 8ffba39127de02121fb87ac70f5f7902bec0e56d..1105c1f9c08ed3531b2b7581f124c9b9bc8d8cf9 100644 (file)
@@ -360,6 +360,7 @@ void CustomTrackView::mouseMoveEvent(QMouseEvent * event)
                 pos = (br.bottom() - pos) * maxh;
                 m_dragItem->updateKeyFramePos(keyFramePos, pos);
             }
+            scene()->removeItem(m_visualTip);
             m_animationTimer->stop();
             delete m_animation;
             m_animation = NULL;
@@ -367,6 +368,7 @@ void CustomTrackView::mouseMoveEvent(QMouseEvent * event)
             m_visualTip = NULL;
             return;
         } else if (m_operationMode == MOVEGUIDE) {
+            scene()->removeItem(m_visualTip);
             m_animationTimer->stop();
             delete m_animation;
             m_animation = NULL;
@@ -421,6 +423,7 @@ void CustomTrackView::mouseMoveEvent(QMouseEvent * event)
             return;
         } else {
             if (m_visualTip) {
+                scene()->removeItem(m_visualTip);
                 m_animationTimer->stop();
                 delete m_animation;
                 m_animation = NULL;
@@ -577,6 +580,7 @@ void CustomTrackView::mouseMoveEvent(QMouseEvent * event)
         setCursor(Qt::SplitHCursor);
     } else {
         if (m_visualTip) {
+            scene()->removeItem(m_visualTip);
             m_animationTimer->stop();
             delete m_animation;
             m_animation = NULL;
@@ -3873,6 +3877,7 @@ void CustomTrackView::setScale(double scaleFactor, double verticalScale)
     QMatrix matrix;
     matrix = matrix.scale(scaleFactor, verticalScale);
     m_scene->setScale(scaleFactor, verticalScale);
+    scene()->removeItem(m_visualTip);
     m_animationTimer->stop();
     delete m_visualTip;
     m_visualTip = NULL;