! Base class constructor which initializes base class members. */
| 12201 | Base class constructor which initializes base class members. |
| 12202 | */ |
| 12203 | QCPAbstractItem::QCPAbstractItem(QCustomPlot *parentPlot) : |
| 12204 | QCPLayerable(parentPlot), |
| 12205 | mClipToAxisRect(false), |
| 12206 | mSelectable(true), |
| 12207 | mSelected(false) |
| 12208 | { |
| 12209 | parentPlot->registerItem(this); |
| 12210 | |
| 12211 | QList<QCPAxisRect*> rects = parentPlot->axisRects(); |
| 12212 | if (rects.size() > 0) |
| 12213 | { |
| 12214 | setClipToAxisRect(true); |
| 12215 | setClipAxisRect(rects.first()); |
| 12216 | } |
| 12217 | } |
| 12218 | |
| 12219 | QCPAbstractItem::~QCPAbstractItem() |
| 12220 | { |
nothing calls this directly
no test coverage detected