MCPcopy Create free account
hub / github.com/cutechess/cutechess / QCPColorScale

Method QCPColorScale

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:20127–20138  ·  view source on GitHub ↗

! Constructs a new QCPColorScale. */

Source from the content-addressed store, hash-verified

20125 Constructs a new QCPColorScale.
20126*/
20127QCPColorScale::QCPColorScale(QCustomPlot *parentPlot) :
20128 QCPLayoutElement(parentPlot),
20129 mType(QCPAxis::atTop), // set to atTop such that setType(QCPAxis::atRight) below doesn't skip work because it thinks it's already atRight
20130 mDataScaleType(QCPAxis::stLinear),
20131 mGradient(QCPColorGradient::gpCold),
20132 mBarWidth(20),
20133 mAxisRect(new QCPColorScaleAxisRectPrivate(this))
20134{
20135 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)
20136 setType(QCPAxis::atRight);
20137 setDataRange(QCPRange(0, 6));
20138}
20139
20140QCPColorScale::~QCPColorScale()
20141{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected