: 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
<height>179</height>
</rect>
</property>
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="map" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text" >
<string>Map goes here</string>
</property>
</widget>
</item>
</layout>
- <zorder>map</zorder>
- <zorder>toolButton</zorder>
</widget>
<resources/>
<connections/>