改进代码
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
QwtPlotTradingCurve supports candlestick or bar ( OHLC ) charts
|
||||
that are used in the domain of technical analysis.
|
||||
|
||||
While the length ( height or width depending on orientation() )
|
||||
While the length ( height or width depending on orientation() )
|
||||
of each symbol depends on the corresponding OHLC sample the size
|
||||
of the other dimension can be controlled using:
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
|
||||
The extent is a size in scale coordinates, so that the symbol width
|
||||
is increasing when the plot is zoomed in. Minimum/Maximum width
|
||||
is in widget coordinates independent from the zoom level.
|
||||
When setting the minimum and maximum to the same value, the width of
|
||||
the symbol is fixed.
|
||||
is in widget coordinates independent from the zoom level.
|
||||
When setting the minimum and maximum to the same value, the width of
|
||||
the symbol is fixed.
|
||||
*/
|
||||
class QWT_EXPORT QwtPlotTradingCurve:
|
||||
class QWT_EXPORT QwtPlotTradingCurve:
|
||||
public QwtPlotSeriesItem, QwtSeriesStore<QwtOHLCSample>
|
||||
{
|
||||
public:
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
//! Paint attributes
|
||||
typedef QFlags<PaintAttribute> PaintAttributes;
|
||||
|
||||
explicit QwtPlotTradingCurve( const QString &title = QString::null );
|
||||
explicit QwtPlotTradingCurve( const QString &title = QString() );
|
||||
explicit QwtPlotTradingCurve( const QwtText &title );
|
||||
|
||||
virtual ~QwtPlotTradingCurve();
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
void setSymbolStyle( SymbolStyle style );
|
||||
SymbolStyle symbolStyle() const;
|
||||
|
||||
void setSymbolPen( const QColor &,
|
||||
void setSymbolPen( const QColor &,
|
||||
qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
|
||||
void setSymbolPen( const QPen & );
|
||||
QPen symbolPen() const;
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
void setSymbolBrush( Direction, const QBrush & );
|
||||
QBrush symbolBrush( Direction ) const;
|
||||
|
||||
void setSymbolExtent( double width );
|
||||
void setSymbolExtent( double );
|
||||
double symbolExtent() const;
|
||||
|
||||
void setMinSymbolWidth( double );
|
||||
@@ -150,14 +150,14 @@ protected:
|
||||
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
|
||||
const QRectF &canvasRect, int from, int to ) const;
|
||||
|
||||
virtual void drawUserSymbol( QPainter *,
|
||||
virtual void drawUserSymbol( QPainter *,
|
||||
SymbolStyle, const QwtOHLCSample &,
|
||||
Qt::Orientation, bool inverted, double symbolWidth ) const;
|
||||
|
||||
void drawBar( QPainter *painter, const QwtOHLCSample &,
|
||||
Qt::Orientation, bool inverted, double width ) const;
|
||||
|
||||
void drawBar( QPainter *painter, const QwtOHLCSample &,
|
||||
Qt::Orientation, bool inverted, double width ) const;
|
||||
|
||||
void drawCandleStick( QPainter *, const QwtOHLCSample &,
|
||||
void drawCandleStick( QPainter *, const QwtOHLCSample &,
|
||||
Qt::Orientation, double width ) const;
|
||||
|
||||
virtual double scaledSymbolWidth(
|
||||
|
||||
Reference in New Issue
Block a user