! Constructs a new QCPColorScale. */
| 19369 | Constructs a new QCPColorScale. |
| 19370 | */ |
| 19371 | QCPColorScale::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 | |
| 19383 | QCPColorScale::~QCPColorScale() |
| 19384 | { |
nothing calls this directly
no outgoing calls
no test coverage detected