MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / QCPBars

Method QCPBars

3rdparty/qcustomplot/qcustomplot.cpp:24443–24457  ·  view source on GitHub ↗

! Constructs a bar 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 QCPBa

Source from the content-addressed store, hash-verified

24441 but use QCustomPlot::removePlottable() instead.
24442*/
24443QCPBars::QCPBars(QCPAxis *keyAxis, QCPAxis *valueAxis) :
24444 QCPAbstractPlottable1D<QCPBarsData>(keyAxis, valueAxis),
24445 mWidth(0.75),
24446 mWidthType(wtPlotCoords),
24447 mBarsGroup(nullptr),
24448 mBaseValue(0),
24449 mStackingGap(1)
24450{
24451 // modify inherited properties from abstract plottable:
24452 mPen.setColor(Qt::blue);
24453 mPen.setStyle(Qt::SolidLine);
24454 mBrush.setColor(QColor(40, 50, 255, 30));
24455 mBrush.setStyle(Qt::SolidPattern);
24456 mSelectionDecorator->setBrush(QBrush(QColor(160, 160, 255)));
24457}
24458
24459QCPBars::~QCPBars()
24460{

Callers

nothing calls this directly

Calls 4

QColorClass · 0.85
setColorMethod · 0.80
setStyleMethod · 0.80
setBrushMethod · 0.80

Tested by

no test coverage detected