MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / QCPFinancial

Method QCPFinancial

3rdparty/qcustomplot/qcustomplot.cpp:27098–27110  ·  view source on GitHub ↗

! Constructs a financial chart which uses \a keyAxis as its key axis ("x") and \a valueAxis as its value axis ("y"). \a keyAxis and \a valueAxis must reside in the same QCustomPlot instance and not have the same orientation. If either of these restrictions is violated, a corresponding message is printed to the debug output (qDebug), the construction is not aborted, though. The created

Source from the content-addressed store, hash-verified

27096 but use QCustomPlot::removePlottable() instead.
27097*/
27098QCPFinancial::QCPFinancial(QCPAxis *keyAxis, QCPAxis *valueAxis) :
27099 QCPAbstractPlottable1D<QCPFinancialData>(keyAxis, valueAxis),
27100 mChartStyle(csCandlestick),
27101 mWidth(0.5),
27102 mWidthType(wtPlotCoords),
27103 mTwoColored(true),
27104 mBrushPositive(QBrush(QColor(50, 160, 0))),
27105 mBrushNegative(QBrush(QColor(180, 0, 15))),
27106 mPenPositive(QPen(QColor(40, 150, 0))),
27107 mPenNegative(QPen(QColor(170, 5, 5)))
27108{
27109 mSelectionDecorator->setBrush(QBrush(QColor(160, 160, 255)));
27110}
27111
27112QCPFinancial::~QCPFinancial()
27113{

Callers

nothing calls this directly

Calls 2

QColorClass · 0.85
setBrushMethod · 0.80

Tested by

no test coverage detected