equal
deleted
inserted
replaced
96 // |
96 // |
97 // ----------------------------------------------------------------------------- |
97 // ----------------------------------------------------------------------------- |
98 // |
98 // |
99 CEasyDialingListBox::~CEasyDialingListBox() |
99 CEasyDialingListBox::~CEasyDialingListBox() |
100 { |
100 { |
101 delete iBGContext; |
101 delete iBGContext; |
102 delete iLongTapDetector; |
102 delete iLongTapDetector; |
103 } |
103 } |
104 |
104 |
105 // ----------------------------------------------------------------------------- |
105 // ----------------------------------------------------------------------------- |
106 // ConstructL |
106 // ConstructL |
119 data->SetContactDataManager(aContactDataManager); |
119 data->SetContactDataManager(aContactDataManager); |
120 data->SetEDLBXControl(this); |
120 data->SetEDLBXControl(this); |
121 |
121 |
122 iBGContext = CAknsFrameBackgroundControlContext::NewL( KAknsIIDQsnFrPopupSub, |
122 iBGContext = CAknsFrameBackgroundControlContext::NewL( KAknsIIDQsnFrPopupSub, |
123 Rect(), Rect(), EFalse ); |
123 Rect(), Rect(), EFalse ); |
124 |
124 |
125 // ContactDataManager is accessed from SizeChanged. If list item size |
125 // ContactDataManager is accessed from SizeChanged. If list item size |
126 // changes -> thumbnail size changes |
126 // changes -> thumbnail size changes |
127 iContactDataManager = aContactDataManager; |
127 iContactDataManager = aContactDataManager; |
128 |
128 |
129 drawer->SetColors(); |
129 drawer->SetColors(); |
176 // |
176 // |
177 // ----------------------------------------------------------------------------- |
177 // ----------------------------------------------------------------------------- |
178 // |
178 // |
179 void CEasyDialingListBox::CreateItemDrawerL() |
179 void CEasyDialingListBox::CreateItemDrawerL() |
180 { |
180 { |
181 CEasyDialingListBoxData* celldata = CEasyDialingListBoxData::NewL(); |
181 CEasyDialingListBoxData* celldata = CEasyDialingListBoxData::NewL( *iEikonEnv ); |
182 CleanupStack::PushL( celldata ); |
182 CleanupStack::PushL( celldata ); |
183 iItemDrawer = new(ELeave) CEasyDialingListBoxItemDrawer(Model(), iEikonEnv->NormalFont(), celldata); |
183 iItemDrawer = new(ELeave) CEasyDialingListBoxItemDrawer(Model(), iEikonEnv->NormalFont(), celldata); |
184 CleanupStack::Pop( celldata ); |
184 CleanupStack::Pop( celldata ); |
185 } |
185 } |
186 |
186 |