calendarui/agendaeventviewer/src/agendaeventview.cpp
changeset 37 360d55486d7f
parent 32 ea672fcb0ea0
child 49 5de72ea7a065
equal deleted inserted replaced
32:ea672fcb0ea0 37:360d55486d7f
   530         addressType = MapTileService::AddressPlain;
   530         addressType = MapTileService::AddressPlain;
   531         int eventId = mAgendaEntry.id();
   531         int eventId = mAgendaEntry.id();
   532         mMaptilePath = MapTileService::getMapTileImage(eventId, addressType);
   532         mMaptilePath = MapTileService::getMapTileImage(eventId, addressType);
   533         if (!mMaptilePath.isNull())
   533         if (!mMaptilePath.isNull())
   534         {                        
   534         {                        
   535             QIcon mapTileIcon(mMaptilePath);
   535             HbIcon maptile(mMaptilePath);
   536             QPainter painter;
       
   537             QPixmap baloon(HbIcon("qtg_small_location").pixmap());
       
   538             QPixmap map (mapTileIcon.pixmap(width,height));
       
   539             //Display pin image in the center of maptile image
       
   540             painter.begin( &map );
       
   541             painter.drawPixmap( (width/2)-(baloon.width()/2), 
       
   542                           (height/2)-baloon.height(), baloon );
       
   543             painter.end();
       
   544             mapTileIcon.addPixmap( map );          
       
   545             
       
   546             HbIcon maptile(mapTileIcon);
       
   547             mMaptileLabel->setIcon(maptile);        
   536             mMaptileLabel->setIcon(maptile);        
   548 
   537 
   549             mMaptileLabel->setPreferredSize(QSizeF(width, height));
   538             mMaptileLabel->setPreferredSize(QSizeF(width, height));
   550             mMaptileLabel->setMinimumSize(QSizeF(width, height));
   539             mMaptileLabel->setMinimumSize(QSizeF(width, height));
   551             mMaptileLabel->setMaximumSize(QSizeF(width, height));
   540             mMaptileLabel->setMaximumSize(QSizeF(width, height));