void QwtPlot::lgdClicked() { if ( sender()->isWidgetType() ) { long key = d_legend->key((QWidget *)sender()); if ( key >= 0 ) emit legendClicked(key); } }
/*! Called internally when the legend has been clicked on. Emits a legendClicked() signal. */ void QwtPolarPlot::legendItemClicked() { if ( d_data->legend && sender()->isWidgetType() ) { QwtPolarItem *plotItem = ( QwtPolarItem* )d_data->legend->find(( QWidget * )sender() ); if ( plotItem ) emit legendClicked( plotItem ); } }
/*! Called internally when the legend has been clicked on. Emits a legendClicked() signal. */ void QwtPolarPlot::legendItemClicked() { if ( d_data->legend && sender()->isWidgetType() ) { QwtPolarItem *plotItem = static_cast< QwtPolarItem* >( d_data->legend->find( qobject_cast<const QWidget *>( sender() ) ) ); if ( plotItem ) Q_EMIT legendClicked( plotItem ); } }
void QwtPlot::lgdClicked(int index) { emit legendClicked(d_legend->key(index)); }