MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / QCPColorScale

Method QCPColorScale

qcustomplot.cpp:19371–19381  ·  view source on GitHub ↗

! Constructs a new QCPColorScale. */

Source from the content-addressed store, hash-verified

19369 Constructs a new QCPColorScale.
19370*/
19371QCPColorScale::QCPColorScale(QCustomPlot *parentPlot) :
19372 QCPLayoutElement(parentPlot),
19373 mType(QCPAxis::atTop), // set to atTop such that setType(QCPAxis::atRight) below doesn't skip work because it thinks it's already atRight
19374 mDataScaleType(QCPAxis::stLinear),
19375 mBarWidth(20),
19376 mAxisRect(new QCPColorScaleAxisRectPrivate(this))
19377{
19378 setMinimumMargins(QMargins(0, 6, 0, 6)); // for default right color scale types, keep some room at bottom and top (important if no margin group is used)
19379 setType(QCPAxis::atRight);
19380 setDataRange(QCPRange(0, 6));
19381}
19382
19383QCPColorScale::~QCPColorScale()
19384{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected