! Base class constructor which initializes base class members. */
| 12929 | Base class constructor which initializes base class members. |
| 12930 | */ |
| 12931 | QCPAbstractItem::QCPAbstractItem(QCustomPlot *parentPlot) : |
| 12932 | QCPLayerable(parentPlot), |
| 12933 | mClipToAxisRect(false), |
| 12934 | mSelectable(true), |
| 12935 | mSelected(false) |
| 12936 | { |
| 12937 | parentPlot->registerItem(this); |
| 12938 | |
| 12939 | QList<QCPAxisRect*> rects = parentPlot->axisRects(); |
| 12940 | if (!rects.isEmpty()) |
| 12941 | { |
| 12942 | setClipToAxisRect(true); |
| 12943 | setClipAxisRect(rects.first()); |
| 12944 | } |
| 12945 | } |
| 12946 | |
| 12947 | QCPAbstractItem::~QCPAbstractItem() |
| 12948 | { |
nothing calls this directly
no test coverage detected