camerauis/cameraapp/generic/src/CamCaptureSetupMenu.cpp
branchRCL_3
changeset 31 8f559c47d7fd
parent 0 1ddebce53859
equal deleted inserted replaced
27:53c8aa5d97a3 31:8f559c47d7fd
   171 // ---------------------------------------------------------
   171 // ---------------------------------------------------------
   172 //
   172 //
   173 TInt CCamCaptureSetupMenu::CountComponentControls() const
   173 TInt CCamCaptureSetupMenu::CountComponentControls() const
   174     {
   174     {
   175 	// this control contains a listbox
   175 	// this control contains a listbox
   176     return 1; 
   176     return CCamContainerBase::CountComponentControls() + 1; 
   177     }
   177     }
   178 
   178 
   179 // ---------------------------------------------------------
   179 // ---------------------------------------------------------
   180 // CCamCaptureSetupMenu::ComponentControl(TInt aIndex) const
   180 // CCamCaptureSetupMenu::ComponentControl(TInt aIndex) const
   181 // ---------------------------------------------------------
   181 // ---------------------------------------------------------
   182 //
   182 //
   183 CCoeControl* CCamCaptureSetupMenu::ComponentControl(TInt /*aIndex*/) const
   183 CCoeControl* CCamCaptureSetupMenu::ComponentControl(TInt aIndex) const
   184     {
   184     {
   185 	return iCaptureSetupListBox;
   185     CCoeControl* control = CCamContainerBase::ComponentControl( aIndex );
   186     }
   186     if( control == NULL)
       
   187         {
       
   188         control = iCaptureSetupListBox;
       
   189         }
       
   190     return control;
       
   191 	}
   187 
   192 
   188 // ---------------------------------------------------------
   193 // ---------------------------------------------------------
   189 // CCamCaptureSetupMenu::Draw(const TRect& aRect) const
   194 // CCamCaptureSetupMenu::Draw(const TRect& aRect) const
   190 // ---------------------------------------------------------
   195 // ---------------------------------------------------------
   191 //
   196 //