- Timestamp:
- 01/21/10 09:49:21 (13 years ago)
- Branches:
- master, qt5
- Children:
- ce75316
- Parents:
- 8fe9bd2
- Location:
- src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mapwindow.cpp
r8fe9bd2 rbe9c036 5 5 { 6 6 setupUi(this); 7 #ifdef MAEMO 8 showFullScreen(); 9 //map->setScaledContents(true); 10 //map->setPixmap(aImage.scaled(QSize(800,480),Qt::KeepAspectRatioByExpanding,Qt::SmoothTransformation)); 11 map->setPixmap(aImage.scaled(QSize(640,480),Qt::KeepAspectRatioByExpanding,Qt::SmoothTransformation)); 12 #else 13 map->setPixmap(aImage,Qt::KeepAspectRatioByExpanding,Qt::SmoothTransformation); 14 #endif 7 15 setMouseTracking(true); // to receive mouse events 8 16 setWindowTitle(aName); 9 map->setPixmap(aImage);10 17 } 11 18 -
src/gui/mapwindow.ui
r8fe9bd2 rbe9c036 10 10 </rect> 11 11 </property> 12 <property name="sizePolicy" > 13 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 14 <horstretch>0</horstretch> 15 <verstretch>0</verstretch> 16 </sizepolicy> 17 </property> 12 18 <property name="windowTitle" > 13 19 <string>Dialog</string> … … 16 22 <item row="0" column="0" > 17 23 <widget class="QLabel" name="map" > 24 <property name="sizePolicy" > 25 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 26 <horstretch>0</horstretch> 27 <verstretch>0</verstretch> 28 </sizepolicy> 29 </property> 18 30 <property name="text" > 19 31 <string>Map goes here</string> … … 25 37 </item> 26 38 </layout> 27 <zorder>map</zorder>28 <zorder>toolButton</zorder>29 39 </widget> 30 40 <resources/>
Note: See TracChangeset
for help on using the changeset viewer.