X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=playermainwindow.cpp;h=c77bd566c618532b4dc04272bc6591aca40028d2;hb=f9fe22e0066fcde0f4e53a9e715962f2e1b2f241;hp=c2186e90bd2227fe87090ee8db457de3ed39c81f;hpb=a2cdc1b3ffcd5640dab4b6832cd74b425f81327e;p=vlc-remote diff --git a/playermainwindow.cpp b/playermainwindow.cpp index c2186e9..c77bd56 100644 --- a/playermainwindow.cpp +++ b/playermainwindow.cpp @@ -160,17 +160,25 @@ void PlayerMainWindow::setPortrait() { - this->setAttribute(Qt::WA_Maemo5PortraitOrientation, true); + #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) + this->setAttribute(Qt::WA_Maemo5PortraitOrientation, true); + #endif + + } void PlayerMainWindow::setLandscape() { + #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) this->setAttribute(Qt::WA_Maemo5LandscapeOrientation, true); + #endif } void PlayerMainWindow::setAutoRotate() { - this->setAttribute(Qt::WA_Maemo5AutoOrientation, true); + #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) + this->setAttribute(Qt::WA_Maemo5AutoOrientation, true); + #endif } void PlayerMainWindow::orientationChanged() { @@ -411,7 +419,7 @@ // rebuild display layout // retrieve album art mHasImage = false; - mPlayListMainWindow->requestPlayList(); + QTimer::singleShot(500, mPlayListMainWindow, SLOT(requestPlayList())); } // Update the buttons on the playlist window if (NULL != this->mPlayListMainWindow) { @@ -471,7 +479,7 @@ void PlayerMainWindow::setCoverArtFromPixmap(QPixmap image) { mHasImage = true; ui->labelArtLandscape->setPixmap(image.scaledToHeight(120, Qt::SmoothTransformation)); - ui->labelArtPortrait->setPixmap(image.scaledToHeight(310, Qt::SmoothTransformation)); + ui->labelArtPortrait->setPixmap(image.scaledToHeight(320, Qt::SmoothTransformation)); if (mIsLandscape) { ui->labelArtPortrait->setVisible(false); ui->labelArtLandscape->setVisible(true);