X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=rotatingbackground.cpp;fp=rotatingbackground.cpp;h=10dd5cdb6847caf342365f94a625b344a8597509;hb=53ed473f30dbcb53b28fe21bdd8b08329b6fd4bc;hp=43d9db787855f021d94bd8f481e406dc01672508;hpb=1784db6392f6acc7d7bb61cfc513bdd8a72a3d5b;p=fapman diff --git a/rotatingbackground.cpp b/rotatingbackground.cpp index 43d9db7..10dd5cd 100644 --- a/rotatingbackground.cpp +++ b/rotatingbackground.cpp @@ -86,12 +86,11 @@ void RotatingBackground::paintEvent(QPaintEvent *) } } -void RotatingBackground::resizeEvent(QResizeEvent *) +void RotatingBackground::resizeEvent(QResizeEvent* event) { - this->resize( dynamic_cast(parent())->size() ); + QWidget::resizeEvent(event); } void RotatingBackground::orientationChanged() { - resizeEvent(0); }