QTfrontend/ui/widget/bgwidget.cpp
changeset 8420 98e3cc0418f9
parent 8393 85bd6c7b2641
child 9080 9b42757d7e71
equal deleted inserted replaced
8419:d99f46b676b5 8420:98e3cc0418f9
   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 
   179 
   180     repaint(); // Repaint every frame. Prevents ghosting of widgets if widgets resize in runtime.
   180     //repaint(); // Repaint every frame. Prevents ghosting of widgets if widgets resize in runtime.
   181 }
   181 }
   182 
   182 
   183 void BGWidget::startAnimation()
   183 void BGWidget::startAnimation()
   184 {
   184 {
   185     timerAnimation->start();
   185     timerAnimation->start();