force resize after rotation
authorchristian <christian@christian-laptop.(none)>
Tue, 13 Jul 2010 14:36:29 +0000 (16:36 +0200)
committerchristian <christian@christian-laptop.(none)>
Tue, 13 Jul 2010 14:36:29 +0000 (16:36 +0200)
src/mainwindow.cpp

index 27471fe..e40015f 100644 (file)
@@ -65,6 +65,9 @@ MainWindow::MainWindow(QString url, int quality):
        setAttribute(Qt::WA_Maemo5AutoOrientation, true);
        //setAttribute(Qt::WA_Maemo5PortraitOrientation, true);
 
+       connect(QApplication::desktop(), SIGNAL(resized(int)),
+               this, SLOT(forceResize()));
+
        if(url.isNull()) {
                disconnect_action->setEnabled(false);
                toolbar->setEnabled(false);