改进代码

This commit is contained in:
feiyangqingyun
2021-10-08 10:52:05 +08:00
parent f6923b97a2
commit 200b7eeafb
171 changed files with 2894 additions and 1940 deletions

View File

@@ -117,19 +117,19 @@ void QwtPlotSpectroCurve::setSamples( const QVector<QwtPoint3D> &samples )
/*!
Assign a series of samples
setSamples() is just a wrapper for setData() without any additional
value - beside that it is easier to find for the developer.
\param data Data
\warning The item takes ownership of the data object, deleting
it when its not used anymore.
it when its not used anymore.
*/
void QwtPlotSpectroCurve::setSamples(
QwtSeriesData<QwtPoint3D> *data )
{
setData( data );
}
}
/*!
Change the color map
@@ -310,7 +310,7 @@ void QwtPlotSpectroCurve::drawDots( QPainter *painter,
const unsigned char index = d_data->colorMap->colorIndex(
d_data->colorRange, sample.z() );
painter->setPen( QPen( QColor::fromRgba( d_data->colorTable[index] ),
painter->setPen( QPen( QColor::fromRgba( d_data->colorTable[index] ),
d_data->penWidth ) );
}