equal
deleted
inserted
replaced
383 |
383 |
384 |
384 |
385 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) |
385 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */) |
386 { |
386 { |
387 DP("CPodcastListView::HandleLongTapEventL BEGIN"); |
387 DP("CPodcastListView::HandleLongTapEventL BEGIN"); |
|
388 iListContainer->SetLongTapDetectedL(ETrue); |
|
389 |
388 const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 |
390 const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1 |
389 TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( |
391 TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems( |
390 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
392 iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight; |
391 |
393 |
392 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
394 if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight) |
393 { |
395 { |
394 iListContainer->SetLongTapDetectedL(ETrue); |
|
395 iStylusPopupMenu->ShowMenu(); |
396 iStylusPopupMenu->ShowMenu(); |
396 iStylusPopupMenu->SetPosition(aPenEventLocation); |
397 iStylusPopupMenu->SetPosition(aPenEventLocation); |
397 } |
398 } |
398 |
399 |
399 DP("CPodcastListView::HandleLongTapEventL END"); |
400 DP("CPodcastListView::HandleLongTapEventL END"); |