Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- espen@droid:~/dev/Yr$ git show c932a9b94fee0c807638466581d95029743ade42 yr.cpp main.cpp
- commit c932a9b94fee0c807638466581d95029743ade42
- Author: Espen Riskedal <espen@cutehacks.com>
- Date: Mon Apr 4 18:41:17 2011 +0200
- first inital Android version
- diff --git a/main.cpp b/main.cpp
- index ca21e4c..78da620 100644
- --- a/main.cpp
- +++ b/main.cpp
- @@ -34,7 +34,7 @@ int main(int argc, char *argv[])
- #elif defined(Q_OS_MAEMO)
- yr.setAttribute(Qt::WA_Maemo5AutoOrientation, true);
- yr.showFullScreen();
- -#elif defined(Q_WS_SIMULATOR)
- +#elif defined(Q_WS_SIMULATOR) || defined(Q_OS_ANDROID)
- yr.showFullScreen();
- #else
- yr.resize(360, 640);
- diff --git a/yr.cpp b/yr.cpp
- index 74e4ab9..337434d 100644
- --- a/yr.cpp
- +++ b/yr.cpp
- @@ -105,7 +105,7 @@ void Yr::resizeEvent(QResizeEvent *event)
- QRect Yr::screenGeometry()
- {
- -#if defined(Q_WS_S60) || defined(Q_OS_MAEMO)
- +#if defined(Q_WS_S60) || defined(Q_OS_MAEMO) || defined(Q_OS_ANDROID)
- const QDesktopWidget *desktop = QApplication::desktop();
- return QRect(desktop ? desktop->screenGeometry() : QRect(0, 0, 360, 640));
- #elif defined(Q_WS_SIMULATOR)
- espen@droid:~/dev/Yr$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement