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