Commit 4de066eb authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Use prepareGeometryChange() when needed

parent e8b7c6d5
......@@ -44,6 +44,6 @@ void GraphicsCursorItem::setCursorPos( qint64 position )
void GraphicsCursorItem::setHeight( int height )
{
prepareGeometryChange();
m_boundingRect.setHeight( height );
update();
}
......@@ -74,11 +74,13 @@ void GraphicsMovieItem::paint( QPainter* painter, const QStyleOptionGraphicsItem
void GraphicsMovieItem::setWidth( int width )
{
prepareGeometryChange();
m_width = width;
}
void GraphicsMovieItem::setHeight( int height )
{
prepareGeometryChange();
m_height = height;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment