0.7 changes
[fapman] / rotatingbackground.cpp
index b7e99a3..10dd5cd 100644 (file)
@@ -26,6 +26,10 @@ RotatingBackground::RotatingBackground(QWidget *parent) :
        connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
 }
 
+RotatingBackground::~RotatingBackground()
+{
+}
+
 void RotatingBackground::loadWallpaper()
 {
        /*
@@ -82,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);
 }