equal
deleted
inserted
replaced
217 } |
217 } |
218 |
218 |
219 void CAknPopupField::SetScrollBarSelectionL() |
219 void CAknPopupField::SetScrollBarSelectionL() |
220 { |
220 { |
221 TInt selection = iValue->CurrentValueIndex(); |
221 TInt selection = iValue->CurrentValueIndex(); |
|
222 //iOldItemIndex should be saved as original value. |
|
223 if ( iExtension ) |
|
224 { |
|
225 iExtension->iOldItemIndex = selection; |
|
226 } |
222 if (IsInvalid()) selection = 0; |
227 if (IsInvalid()) selection = 0; |
223 __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist)); |
228 __ASSERT_DEBUG(iSelectionList != NULL, Panic(EAknPanicPopupFieldSelectionListDoesntExist)); |
224 iSelectionList->SetCurrentItemIndex(selection); |
229 iSelectionList->SetCurrentItemIndex(selection); |
225 iSelectionList->View()->SelectItemL(selection); |
230 iSelectionList->View()->SelectItemL(selection); |
226 |
|
227 if ( iExtension ) |
|
228 { |
|
229 iExtension->iOldItemIndex = iSelectionList->CurrentItemIndex(); |
|
230 } |
|
231 } |
231 } |
232 |
232 |
233 |
233 |
234 void CAknPopupField::InitialiseRadioButtonBitmapsL() |
234 void CAknPopupField::InitialiseRadioButtonBitmapsL() |
235 { |
235 { |