45 #ifdef CEXMC_USE_ROOTQT 
   47 #include <QContextMenuEvent> 
   56 void  CexmcHistoWidget::contextMenuEvent( QContextMenuEvent *  event )
 
   65     if ( event->reason() == QContextMenuEvent::Other )
 
   67         TCanvas *  canvas( Canvas() );
 
   68         TObject *  object( NULL );
 
   69         TListIter  curPrimitive( canvas->GetListOfPrimitives() );
 
   70         while ( ( 
object = curPrimitive.Next() ) )
 
   72             if ( ! object->InheritsFrom( 
"TH1" ) )
 
   74             TH1 *    histo( static_cast< TH1 * >( 
object ) );
 
   75             TAxis *  axis( histo->GetXaxis() );
 
   78             axis = histo->GetYaxis();
 
   81             axis = histo->GetZaxis();