Advertisement
Guest User

espen

a guest
Apr 4th, 2011
3,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. espen@droid:~/dev/Yr$ git show c932a9b94fee0c807638466581d95029743ade42 yr.cpp main.cpp
  2. commit c932a9b94fee0c807638466581d95029743ade42
  3. Author: Espen Riskedal <espen@cutehacks.com>
  4. Date: Mon Apr 4 18:41:17 2011 +0200
  5.  
  6. first inital Android version
  7.  
  8. diff --git a/main.cpp b/main.cpp
  9. index ca21e4c..78da620 100644
  10. --- a/main.cpp
  11. +++ b/main.cpp
  12. @@ -34,7 +34,7 @@ int main(int argc, char *argv[])
  13. #elif defined(Q_OS_MAEMO)
  14. yr.setAttribute(Qt::WA_Maemo5AutoOrientation, true);
  15. yr.showFullScreen();
  16. -#elif defined(Q_WS_SIMULATOR)
  17. +#elif defined(Q_WS_SIMULATOR) || defined(Q_OS_ANDROID)
  18. yr.showFullScreen();
  19. #else
  20. yr.resize(360, 640);
  21. diff --git a/yr.cpp b/yr.cpp
  22. index 74e4ab9..337434d 100644
  23. --- a/yr.cpp
  24. +++ b/yr.cpp
  25. @@ -105,7 +105,7 @@ void Yr::resizeEvent(QResizeEvent *event)
  26.  
  27. QRect Yr::screenGeometry()
  28. {
  29. -#if defined(Q_WS_S60) || defined(Q_OS_MAEMO)
  30. +#if defined(Q_WS_S60) || defined(Q_OS_MAEMO) || defined(Q_OS_ANDROID)
  31. const QDesktopWidget *desktop = QApplication::desktop();
  32. return QRect(desktop ? desktop->screenGeometry() : QRect(0, 0, 360, 640));
  33. #elif defined(Q_WS_SIMULATOR)
  34. espen@droid:~/dev/Yr$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement