! Constructs a new QCPColorScale. */
| 20106 | Constructs a new QCPColorScale. |
| 20107 | */ |
| 20108 | QCPColorScale::QCPColorScale(QCustomPlot *parentPlot) : |
| 20109 | QCPLayoutElement(parentPlot), |
| 20110 | mType(QCPAxis::atTop), // set to atTop such that setType(QCPAxis::atRight) below doesn't skip work because it thinks it's already atRight |
| 20111 | mDataScaleType(QCPAxis::stLinear), |
| 20112 | mGradient(QCPColorGradient::gpCold), |
| 20113 | mBarWidth(20), |
| 20114 | mAxisRect(new QCPColorScaleAxisRectPrivate(this)) |
| 20115 | { |
| 20116 | 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) |
| 20117 | setType(QCPAxis::atRight); |
| 20118 | setDataRange(QCPRange(0, 6)); |
| 20119 | } |
| 20120 | |
| 20121 | QCPColorScale::~QCPColorScale() |
| 20122 | { |
nothing calls this directly
no outgoing calls
no test coverage detected