tweaks for qt 4.7
[fapman] / rotatingbackground.cpp
index 43d9db7..10dd5cd 100644 (file)
@@ -86,12 +86,11 @@ void RotatingBackground::paintEvent(QPaintEvent *)
        }
 }
 
-void RotatingBackground::resizeEvent(QResizeEvent *)
+void RotatingBackground::resizeEvent(QResizeEvent* event)
 {
-       this->resize( dynamic_cast<QWidget*>(parent())->size() );
+       QWidget::resizeEvent(event);
 }
 
 void RotatingBackground::orientationChanged()
 {
-       resizeEvent(0);
 }