MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / QCPFinancial

Method QCPFinancial

qcustomplot/qcustomplot.cpp:26308–26320  ·  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

26306 but use QCustomPlot::removePlottable() instead.
26307*/
26308QCPFinancial::QCPFinancial(QCPAxis *keyAxis, QCPAxis *valueAxis) :
26309 QCPAbstractPlottable1D<QCPFinancialData>(keyAxis, valueAxis),
26310 mChartStyle(csCandlestick),
26311 mWidth(0.5),
26312 mWidthType(wtPlotCoords),
26313 mTwoColored(true),
26314 mBrushPositive(QBrush(QColor(50, 160, 0))),
26315 mBrushNegative(QBrush(QColor(180, 0, 15))),
26316 mPenPositive(QPen(QColor(40, 150, 0))),
26317 mPenNegative(QPen(QColor(170, 5, 5)))
26318{
26319 mSelectionDecorator->setBrush(QBrush(QColor(160, 160, 255)));
26320}
26321
26322QCPFinancial::~QCPFinancial()
26323{

Callers

nothing calls this directly

Calls 1

setBrushMethod · 0.80

Tested by

no test coverage detected