diff options
author | Adriano Rezende <adriano.rezende@openbossa.org> | 2009-11-17 15:50:11 -0300 |
---|---|---|
committer | Adriano Rezende <adriano.rezende@openbossa.org> | 2009-11-17 17:46:15 -0300 |
commit | f7b51ba9a7ff88629d430d49b5785c17f8271ba8 (patch) | |
tree | 648aff29a1d3f9f12d742c491b4269befee8b9bd /weather | |
parent | a356e26d4825fc5a3cf877c3570af9414a7601e6 (diff) |
Adjusted projects to handle hildon portrait mode
Signed-off-by: Adriano Rezende <adriano.rezende@openbossa.org>
Diffstat (limited to 'weather')
-rw-r--r-- | weather/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/weather/main.cpp b/weather/main.cpp index 0574b93..c98ded2 100644 --- a/weather/main.cpp +++ b/weather/main.cpp @@ -64,18 +64,20 @@ int main(int argc, char **argv) const bool connected = true; #endif - System::setViewMode(System::PortraitMode); - if (connected) ForecastProvider::setForecastSource(new NetworkForecastSource()); else ForecastProvider::setForecastSource(new DemoForecastSource(1500)); MainView mainView(connected); -#ifdef Q_OS_SYMBIAN + + System::setViewMode(&mainView, System::PortraitMode); + +#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) mainView.showFullScreen(); #else mainView.show(); #endif + return app.exec(); } |