Changeset be9c036


Ignore:
Timestamp:
01/21/10 09:49:21 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
ce75316
Parents:
8fe9bd2
Message:

map is displayed in FullScreen? mode

Location:
src/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mapwindow.cpp

    r8fe9bd2 rbe9c036  
    55{
    66    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
    715    setMouseTracking(true); // to receive mouse events
    816    setWindowTitle(aName);
    9     map->setPixmap(aImage);
    1017}
    1118
  • src/gui/mapwindow.ui

    r8fe9bd2 rbe9c036  
    1010   </rect>
    1111  </property>
     12  <property name="sizePolicy" >
     13   <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
     14    <horstretch>0</horstretch>
     15    <verstretch>0</verstretch>
     16   </sizepolicy>
     17  </property>
    1218  <property name="windowTitle" >
    1319   <string>Dialog</string>
     
    1622   <item row="0" column="0" >
    1723    <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>
    1830     <property name="text" >
    1931      <string>Map goes here</string>
     
    2537   </item>
    2638  </layout>
    27   <zorder>map</zorder>
    28   <zorder>toolButton</zorder>
    2939 </widget>
    3040 <resources/>
Note: See TracChangeset for help on using the changeset viewer.