From be9c036f759c2ad0333ca6ce5e19f1064ce945a5 Mon Sep 17 00:00:00 2001 From: pavelpa Date: Thu, 21 Jan 2010 08:49:21 +0000 Subject: [PATCH] map is displayed in FullScreen mode --- src/gui/mapwindow.cpp | 9 ++++++++- src/gui/mapwindow.ui | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/gui/mapwindow.cpp b/src/gui/mapwindow.cpp index 939989b..2e3efa3 100644 --- a/src/gui/mapwindow.cpp +++ b/src/gui/mapwindow.cpp @@ -4,9 +4,16 @@ MapWindow::MapWindow(const QPixmap &aImage, const QString &aName, QWidget *aPare : QDialog(aParent) { setupUi(this); +#ifdef MAEMO + showFullScreen(); + //map->setScaledContents(true); + //map->setPixmap(aImage.scaled(QSize(800,480),Qt::KeepAspectRatioByExpanding,Qt::SmoothTransformation)); + map->setPixmap(aImage.scaled(QSize(640,480),Qt::KeepAspectRatioByExpanding,Qt::SmoothTransformation)); +#else + map->setPixmap(aImage,Qt::KeepAspectRatioByExpanding,Qt::SmoothTransformation); +#endif setMouseTracking(true); // to receive mouse events setWindowTitle(aName); - map->setPixmap(aImage); } // it is enough to handle mouseReleaseEvent, instead of diff --git a/src/gui/mapwindow.ui b/src/gui/mapwindow.ui index 38e5f3d..36bac1b 100644 --- a/src/gui/mapwindow.ui +++ b/src/gui/mapwindow.ui @@ -9,12 +9,24 @@ 179 + + + 0 + 0 + + Dialog + + + 0 + 0 + + Map goes here @@ -24,8 +36,6 @@ - map - toolButton -- 2.39.5