connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
}
+RotatingBackground::~RotatingBackground()
+{
+}
+
void RotatingBackground::loadWallpaper()
{
/*
}
}
-void RotatingBackground::resizeEvent(QResizeEvent *)
+void RotatingBackground::resizeEvent(QResizeEvent* event)
{
- this->resize( dynamic_cast<QWidget*>(parent())->size() );
+ QWidget::resizeEvent(event);
}
void RotatingBackground::orientationChanged()
{
- resizeEvent(0);
}