QTfrontend/ui/widget/bgwidget.cpp
changeset 8393 85bd6c7b2641
parent 6952 7f70f37bbf08
child 8420 98e3cc0418f9
equal deleted inserted replaced
8391:9f2527848ffd 8393:85bd6c7b2641
   174 
   174 
   175         int xdiff = newPos.x() - oldPos.x();
   175         int xdiff = newPos.x() - oldPos.x();
   176         int ydiff = newPos.y() - oldPos.y();
   176         int ydiff = newPos.y() - oldPos.y();
   177         update(oldPos.x(), oldPos.y(), xdiff+sprite.width(), ydiff+sprite.height());
   177         update(oldPos.x(), oldPos.y(), xdiff+sprite.width(), ydiff+sprite.height());
   178     }
   178     }
       
   179 
       
   180     repaint(); // Repaint every frame. Prevents ghosting of widgets if widgets resize in runtime.
   179 }
   181 }
   180 
   182 
   181 void BGWidget::startAnimation()
   183 void BGWidget::startAnimation()
   182 {
   184 {
   183     timerAnimation->start();
   185     timerAnimation->start();