! Constructs a new QCPColorScale. */
| 20125 | Constructs a new QCPColorScale. |
| 20126 | */ |
| 20127 | QCPColorScale::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 | |
| 20140 | QCPColorScale::~QCPColorScale() |
| 20141 | { |
nothing calls this directly
no outgoing calls
no test coverage detected