MCPcopy Create free account
hub / github.com/KDAB/KDChart / init

Method init

src/KDChart/Cartesian/KDChartPlotter.cpp:42–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void 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
59Plotter::~Plotter()
60{

Callers 1

PlotterTypeMethod · 0.45

Calls 1

plotterPrivateMethod · 0.80

Tested by

no test coverage detected