改进代码
This commit is contained in:
@@ -36,7 +36,7 @@ class QPolygonF;
|
||||
\sa QwtPlotBarChart, QwtPlotMultiBarChart
|
||||
*/
|
||||
|
||||
class QWT_EXPORT QwtPlotHistogram:
|
||||
class QWT_EXPORT QwtPlotHistogram:
|
||||
public QwtPlotSeriesItem, public QwtSeriesStore<QwtIntervalSample>
|
||||
{
|
||||
public:
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
|
||||
/*!
|
||||
Draw a column for each interval. When a symbol() has been set
|
||||
the symbol is used otherwise the column is displayed as
|
||||
the symbol is used otherwise the column is displayed as
|
||||
plain rectangle using pen() and brush().
|
||||
*/
|
||||
Columns,
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
UserStyle = 100
|
||||
};
|
||||
|
||||
explicit QwtPlotHistogram( const QString &title = QString::null );
|
||||
explicit QwtPlotHistogram( const QString &title = QString() );
|
||||
explicit QwtPlotHistogram( const QwtText &title );
|
||||
virtual ~QwtPlotHistogram();
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
void setSamples( const QVector<QwtIntervalSample> & );
|
||||
void setSamples( QwtSeriesData<QwtIntervalSample> * );
|
||||
|
||||
void setBaseline( double reference );
|
||||
void setBaseline( double );
|
||||
double baseline() const;
|
||||
|
||||
void setStyle( HistogramStyle style );
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void setSymbol( const QwtColumnSymbol * );
|
||||
const QwtColumnSymbol *symbol() const;
|
||||
|
||||
virtual void drawSeries( QPainter *p,
|
||||
virtual void drawSeries( QPainter *,
|
||||
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
|
||||
const QRectF &canvasRect, int from, int to ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user