@@ -28,8 +28,8 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
28 | 28 | DeclarativeBarSet::DeclarativeBarSet(QObject *parent) : |
|
29 | 29 | QBarSet("", parent) |
|
30 | 30 | { |
|
31 |
connect(this, SIGNAL(valuesAdded(int,int)), this, SLOT(handleCountChanged(int, |
|
|
32 |
connect(this, SIGNAL(valuesRemoved(int,int)), this, SLOT(handleCountChanged(int, |
|
|
31 | connect(this, SIGNAL(valuesAdded(int,int)), this, SLOT(handleCountChanged(int,int))); | |
|
32 | connect(this, SIGNAL(valuesRemoved(int,int)), this, SLOT(handleCountChanged(int,int))); | |
|
33 | 33 | } |
|
34 | 34 | |
|
35 | 35 | void DeclarativeBarSet::handleCountChanged(int index, int count) |
@@ -237,10 +237,10 DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent) | |||
|
237 | 237 | { |
|
238 | 238 | setFlag(QGraphicsItem::ItemHasNoContents, false); |
|
239 | 239 | m_minMargins = new DeclarativeMargins(this); |
|
240 |
connect(m_minMargins, SIGNAL(topChanged(int, |
|
|
241 |
connect(m_minMargins, SIGNAL(bottomChanged(int, |
|
|
242 |
connect(m_minMargins, SIGNAL(leftChanged(int, |
|
|
243 |
connect(m_minMargins, SIGNAL(rightChanged(int, |
|
|
240 | connect(m_minMargins, SIGNAL(topChanged(int,int,int,int)), this, SLOT(changeMinimumMargins(int,int,int,int))); | |
|
241 | connect(m_minMargins, SIGNAL(bottomChanged(int,int,int,int)), this, SLOT(changeMinimumMargins(int,int,int,int))); | |
|
242 | connect(m_minMargins, SIGNAL(leftChanged(int,int,int,int)), this, SLOT(changeMinimumMargins(int,int,int,int))); | |
|
243 | connect(m_minMargins, SIGNAL(rightChanged(int,int,int,int)), this, SLOT(changeMinimumMargins(int,int,int,int))); | |
|
244 | 244 | // TODO: connect to plotAreaChanged signal from m_chart |
|
245 | 245 | } |
|
246 | 246 | |
@@ -275,62 +275,62 void DeclarativeChart::componentComplete() | |||
|
275 | 275 | // Set optional user defined axes and connect axis related signals |
|
276 | 276 | if (qobject_cast<DeclarativeLineSeries *>(child)) { |
|
277 | 277 | DeclarativeLineSeries *s = qobject_cast<DeclarativeLineSeries *>(child); |
|
278 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
279 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
278 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
279 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
280 | 280 | setAxisX(s->axisX(), s); |
|
281 | 281 | setAxisY(s->axisY(), s); |
|
282 | 282 | } else if (qobject_cast<DeclarativeSplineSeries *>(child)) { |
|
283 | 283 | DeclarativeSplineSeries *s = qobject_cast<DeclarativeSplineSeries *>(child); |
|
284 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
285 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
284 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
285 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
286 | 286 | setAxisX(s->axisX(), s); |
|
287 | 287 | setAxisY(s->axisY(), s); |
|
288 | 288 | } else if (qobject_cast<DeclarativeScatterSeries *>(child)) { |
|
289 | 289 | DeclarativeScatterSeries *s = qobject_cast<DeclarativeScatterSeries *>(child); |
|
290 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
291 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
290 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
291 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
292 | 292 | setAxisX(s->axisX(), s); |
|
293 | 293 | setAxisY(s->axisY(), s); |
|
294 | 294 | } else if (qobject_cast<DeclarativeAreaSeries *>(child)) { |
|
295 | 295 | DeclarativeAreaSeries *s = qobject_cast<DeclarativeAreaSeries *>(child); |
|
296 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
297 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
296 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
297 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
298 | 298 | setAxisX(s->axisX(), s); |
|
299 | 299 | setAxisY(s->axisY(), s); |
|
300 | 300 | } else if (qobject_cast<DeclarativeBarSeries *>(child)) { |
|
301 | 301 | DeclarativeBarSeries *s = qobject_cast<DeclarativeBarSeries *>(child); |
|
302 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
303 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
302 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
303 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
304 | 304 | setAxisX(s->axisX(), s); |
|
305 | 305 | setAxisY(s->axisY(), s); |
|
306 | 306 | } else if (qobject_cast<DeclarativeStackedBarSeries *>(child)) { |
|
307 | 307 | DeclarativeStackedBarSeries *s = qobject_cast<DeclarativeStackedBarSeries *>(child); |
|
308 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
309 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
308 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
309 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
310 | 310 | setAxisX(s->axisX(), s); |
|
311 | 311 | setAxisY(s->axisY(), s); |
|
312 | 312 | } else if (qobject_cast<DeclarativePercentBarSeries *>(child)) { |
|
313 | 313 | DeclarativePercentBarSeries *s = qobject_cast<DeclarativePercentBarSeries *>(child); |
|
314 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
315 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
314 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
315 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
316 | 316 | setAxisX(s->axisX(), s); |
|
317 | 317 | setAxisY(s->axisY(), s); |
|
318 | 318 | } else if (qobject_cast<DeclarativeHorizontalBarSeries *>(child)) { |
|
319 | 319 | DeclarativeHorizontalBarSeries *s = qobject_cast<DeclarativeHorizontalBarSeries *>(child); |
|
320 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
321 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
320 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
321 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
322 | 322 | setAxisX(s->axisX(), s); |
|
323 | 323 | setAxisY(s->axisY(), s); |
|
324 | 324 | } else if (qobject_cast<DeclarativeHorizontalStackedBarSeries *>(child)) { |
|
325 | 325 | DeclarativeHorizontalStackedBarSeries *s = qobject_cast<DeclarativeHorizontalStackedBarSeries *>(child); |
|
326 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
327 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
326 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
327 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
328 | 328 | setAxisX(s->axisX(), s); |
|
329 | 329 | setAxisY(s->axisY(), s); |
|
330 | 330 | } else if (qobject_cast<DeclarativeHorizontalPercentBarSeries *>(child)) { |
|
331 | 331 | DeclarativeHorizontalPercentBarSeries *s = qobject_cast<DeclarativeHorizontalPercentBarSeries *>(child); |
|
332 |
connect(s, SIGNAL(axisXChanged(QAbstractAxis |
|
|
333 |
connect(s, SIGNAL(axisYChanged(QAbstractAxis |
|
|
332 | connect(s, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*))); | |
|
333 | connect(s, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*))); | |
|
334 | 334 | setAxisX(s->axisX(), s); |
|
335 | 335 | setAxisY(s->axisY(), s); |
|
336 | 336 | } |
General Comments 0
You need to be logged in to leave comments.
Login now