application/src/PodcastListView.cpp
branchsymbian1
changeset 145 cc0182a5da39
parent 86 a9d05a49b7cd
child 160 6477d22a5dca
equal deleted inserted replaced
90:d0c0c3e6f7a1 145:cc0182a5da39
   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");