| 40 | } |
| 41 | |
| 42 | void Plotter::init() |
| 43 | { |
| 44 | d->diagram = this; |
| 45 | d->normalPlotter = new NormalPlotter(this); |
| 46 | d->percentPlotter = new PercentPlotter(this); |
| 47 | d->implementor = d->normalPlotter; |
| 48 | QObject *test = d->implementor->plotterPrivate(); |
| 49 | connect(this, SIGNAL(boundariesChanged()), test, SLOT(changedProperties())); |
| 50 | // The signal is connected to the superclass's slot at this point because the connection happened |
| 51 | // in its constructor when "its type was not Plotter yet". |
| 52 | disconnect(this, SIGNAL(attributesModelAboutToChange(AttributesModel *, AttributesModel *)), |
| 53 | this, SLOT(connectAttributesModel(AttributesModel *))); |
| 54 | connect(this, SIGNAL(attributesModelAboutToChange(AttributesModel *, AttributesModel *)), |
| 55 | this, SLOT(connectAttributesModel(AttributesModel *))); |
| 56 | setDatasetDimensionInternal(2); |
| 57 | } |
| 58 | |
| 59 | Plotter::~Plotter() |
| 60 | { |
no test coverage detected