calendarui/views/src/caleneventlistviewitem.cpp
changeset 70 a5ed90760192
parent 64 1881ad52dc45
child 83 5aadd1120515
equal deleted inserted replaced
64:1881ad52dc45 70:a5ed90760192
    28 // ----------------------------------------------------------------------------
    28 // ----------------------------------------------------------------------------
    29 // CalenEventListViewItem::CalenEventListViewItem
    29 // CalenEventListViewItem::CalenEventListViewItem
    30 // constructor
    30 // constructor
    31 // ----------------------------------------------------------------------------
    31 // ----------------------------------------------------------------------------
    32 // 
    32 // 
    33 CalenEventListViewItem::CalenEventListViewItem(CalenAgendaViewWidget *parent) :
    33 CalenEventListViewItem::CalenEventListViewItem(QGraphicsItem *parent) :
    34 HbListViewItem(parent),mParent(parent),mAllDayIcon(false)
    34 HbListViewItem(parent)
    35 {
    35 {
    36     OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_ENTRY );
    36     OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_ENTRY );
    37     
    37     
    38     OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_EXIT );
    38     OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_CALENEVENTLISTVIEWITEM_EXIT );
    39 }
    39 }
    70 // ----------------------------------------------------------------------------
    70 // ----------------------------------------------------------------------------
    71 // 
    71 // 
    72 void CalenEventListViewItem::updateChildItems()
    72 void CalenEventListViewItem::updateChildItems()
    73 {
    73 {
    74     OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY );
    74     OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY );
    75     if(mParent->hasAllDayIcon())
       
    76         {
       
    77         mParent->checkEntryIcons();
       
    78         mAllDayIcon = mParent->isAllDayIcon();
       
    79         }
       
    80     
       
    81     HbListViewItem::updateChildItems();
    75     HbListViewItem::updateChildItems();
    82     
    76     
    83     OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT );
    77     OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT );
    84 }
    78 }
    85 
    79 
    86 // ----------------------------------------------------------------------------
       
    87 // CalenEventListViewItem::hasAllDayIcon
       
    88 // check if all day icon is there in item
       
    89 // ----------------------------------------------------------------------------
       
    90 // 
       
    91 bool CalenEventListViewItem::hasAllDayIcon()
       
    92     {
       
    93     return mAllDayIcon ;
       
    94     }
       
    95 
       
    96 // ----------------------------------------------------------------------------
       
    97 // CalenEventListViewItem::setAllDayLeftIcon
       
    98 // set the all day icon 
       
    99 // ----------------------------------------------------------------------------
       
   100 // 
       
   101 void CalenEventListViewItem::setAllDayLeftIcon(bool icon)
       
   102     {
       
   103     mAllDayIcon = icon;
       
   104     }
       
   105 
    80 
   106 // End of file
    81 // End of file