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