for one line I don't want to show its legend, how to disable it ? the enableLegend() was deprecated in qwt-5.2.

QwtPlotCurve *maglayout = new QwtPlotCurve();
maglayout->attach(this);

Thanks.