calendarui/views/src/calenagendaviewwidget.cpp
changeset 68 a5a1242fd2e8
parent 58 ef813d54df51
child 77 b0711afde476
equal deleted inserted replaced
58:ef813d54df51 68:a5a1242fd2e8
  1304     AgendaEntry entry;
  1304     AgendaEntry entry;
  1305      if(mIndex < index )   
  1305      if(mIndex < index )   
  1306      entry = mInstanceArray[mIndex];
  1306      entry = mInstanceArray[mIndex];
  1307      
  1307      
  1308      mLeftAllDayIcon = false;
  1308      mLeftAllDayIcon = false;
  1309      mLocationData = false;
       
  1310      
  1309      
  1311      if(!entry.isTimedEntry() || CalenAgendaUtils::isAlldayEvent(entry)){
  1310      if(!entry.isTimedEntry() || CalenAgendaUtils::isAlldayEvent(entry)){
  1312          //all day icon is not there if its a timed entry
  1311          //all day icon is not there if its a timed entry
  1313          mLeftAllDayIcon = true;
  1312          mLeftAllDayIcon = true;
  1314          }
  1313          }
  1315   
  1314      
  1316      if (!entry.location().isEmpty()) {
       
  1317          mLocationData = true ;
       
  1318          }
       
  1319      //check if shift to next entry
  1315      //check if shift to next entry
  1320     if(mNextEntry)
  1316     if(mNextEntry)
  1321         mIndex++;     
  1317         mIndex++;     
  1322 
  1318 
  1323     }
  1319     }
  1330 bool CalenAgendaViewWidget::isAllDayIcon()
  1326 bool CalenAgendaViewWidget::isAllDayIcon()
  1331     {
  1327     {
  1332     return mLeftAllDayIcon;
  1328     return mLeftAllDayIcon;
  1333     }
  1329     }
  1334 
  1330 
  1335 // ----------------------------------------------------------------------------
       
  1336 // CalenAgendaViewWidget::isLocationData
       
  1337 // return true  if location entry is present
       
  1338 // ----------------------------------------------------------------------------
       
  1339 //
       
  1340 bool CalenAgendaViewWidget::isLocationData()
       
  1341     {
       
  1342     return mLocationData;
       
  1343     }
       
  1344 // End of file	--Don't remove this.
  1331 // End of file	--Don't remove this.