24 #include "KDChartAbstractCartesianDiagram_p.h"
26 #include <KDABLibFakes>
29 using namespace KDChart;
31 AbstractCartesianDiagram::Private::Private()
32 : referenceDiagram( 0 )
36 AbstractCartesianDiagram::Private::~Private()
42 if ( other ==
this )
return true;
70 void AbstractCartesianDiagram::init()
86 if ( !
d->axesList.contains( axis ) ) {
87 d->axesList.append( axis );
88 axis->createObserver(
this );
95 const int idx =
d->axesList.indexOf( axis );
97 d->axesList.takeAt( idx );
119 disconnect(
attributesModel(), SIGNAL( rowsRemoved(
const QModelIndex&,
int,
int ) ),
121 disconnect(
attributesModel(), SIGNAL( rowsInserted(
const QModelIndex&,
int,
int ) ),
123 disconnect(
attributesModel(), SIGNAL( columnsRemoved(
const QModelIndex&,
int,
int ) ),
125 disconnect(
attributesModel(), SIGNAL( columnsInserted(
const QModelIndex&,
int,
int ) ),
133 connect(
attributesModel(), SIGNAL( rowsRemoved(
const QModelIndex&,
int,
int ) ),
134 plane, SLOT( relayout() ), Qt::QueuedConnection );
135 connect(
attributesModel(), SIGNAL( rowsInserted(
const QModelIndex&,
int,
int ) ),
136 plane, SLOT( relayout() ), Qt::QueuedConnection );
137 connect(
attributesModel(), SIGNAL( columnsRemoved(
const QModelIndex&,
int,
int ) ),
138 plane, SLOT( relayout() ), Qt::QueuedConnection );
139 connect(
attributesModel(), SIGNAL( columnsInserted(
const QModelIndex&,
int,
int ) ),
140 plane, SLOT( relayout() ), Qt::QueuedConnection );
152 d->referenceDiagram = diagram;
153 d->referenceDiagramOffset = offset;
158 return d->referenceDiagram;
163 return d->referenceDiagramOffset;