projects
/
vlc-remote
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add compilation condition to allow compilation on desktop
[vlc-remote]
/
playermainwindow.cpp
diff --git
a/playermainwindow.cpp
b/playermainwindow.cpp
index
c2186e9
..
5f91727
100644
(file)
--- a/
playermainwindow.cpp
+++ b/
playermainwindow.cpp
@@
-160,17
+160,25
@@
void PlayerMainWindow::setPortrait()
{
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()
{
}
void PlayerMainWindow::setLandscape()
{
+ #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
this->setAttribute(Qt::WA_Maemo5LandscapeOrientation, true);
this->setAttribute(Qt::WA_Maemo5LandscapeOrientation, true);
+ #endif
}
void PlayerMainWindow::setAutoRotate()
{
}
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() {
}
void PlayerMainWindow::orientationChanged() {