Example #1
0
void QwtPlot::lgdClicked()
{
    if ( sender()->isWidgetType() )
    {
        long key = d_legend->key((QWidget *)sender());
        if ( key >= 0 )
            emit legendClicked(key);
    }
}
Example #2
0
/*!
  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 );
  }
}
Example #3
0
/*!
  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 );
    }
}
Example #4
0
void QwtPlot::lgdClicked(int index)
{
    emit legendClicked(d_legend->key(index));
}