From: pavelpa Date: Thu, 21 Jan 2010 08:49:21 +0000 (+0000) Subject: map is displayed in FullScreen mode X-Git-Tag: 0.5.0~240 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/be9c036f759c2ad0333ca6ce5e19f1064ce945a5 map is displayed in FullScreen mode --- 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