application/src/PodcastListView.cpp
changeset 55 31e34b8e2878
parent 50 e7b10d6d7ba3
child 93 c2f1ea38ec70
equal deleted inserted replaced
54:c5cd47bc11ef 55:31e34b8e2878
   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*/)