##// END OF EJS Templates
QBarCategoryAxis doesn't notify domain on category remove...
QBarCategoryAxis doesn't notify domain on category remove If category is removed from the middle or a new one is inserted into middle the domain doesn't get notification about this. However removing first or last category or inserting a new at the beginning or at the end is working. Change-Id: I1eea3ea0c3e9fa1e0b2ff8dfbe56ae6848839991 Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r2483:f494279b6366
r2558:0bd3eac43e23
Show More
drilldownchart.cpp
60 lines | 1.7 KiB | text/x-c | CppLexer
sauimone
splitted barchartdrilldown example to separate files
r903 /****************************************************************************
**
Miikka Heikkinen
More copyright year changes
r2433 ** Copyright (C) 2013 Digia Plc
sauimone
splitted barchartdrilldown example to separate files
r903 ** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
#include "drilldownchart.h"
Marek Rosa
QBarCategoriesAxis renamed to QBarCategoryAxis
r1809 #include <QBarCategoryAxis>
sauimone
splitted barchartdrilldown example to separate files
r903
QTCOMMERCIALCHART_USE_NAMESPACE
DrilldownChart::DrilldownChart(QGraphicsItem *parent, Qt::WindowFlags wFlags)
Miikka Heikkinen
Add Polar chart support...
r2483 : QChart(QChart::ChartTypeCartesian, parent, wFlags),
Jani Honkonen
coding style fixes for examples
r2098 m_currentSeries(0)
sauimone
splitted barchartdrilldown example to separate files
r903 {
}
sauimone
fixed stackedbar drilldown series. categories are updated for xaxis
r1414 void DrilldownChart::changeSeries(DrilldownBarSeries *series)
sauimone
splitted barchartdrilldown example to separate files
r903 {
sauimone
fixed stackedbar drilldown series. categories are updated for xaxis
r1414 if (m_currentSeries) {
sauimone
splitted barchartdrilldown example to separate files
r903 removeSeries(m_currentSeries);
sauimone
fixed stackedbar drilldown series. categories are updated for xaxis
r1414 }
sauimone
splitted barchartdrilldown example to separate files
r903 m_currentSeries = series;
sauimone
fixed stackedbar drilldown series. categories are updated for xaxis
r1414
// Reset axis
Jani Honkonen
more coding style fixes for examples...
r2102 QBarCategoryAxis *axis = new QBarCategoryAxis();
Michal Klocek
Refactors QAxis to QAbstractAxis...
r1541 axis->append(m_currentSeries->categories());
sauimone
fixed stackedbar drilldown series. categories are updated for xaxis
r1414
sauimone
splitted barchartdrilldown example to separate files
r903 addSeries(series);
Michal Klocek
Fixes for stackedbarchartdrilldown
r1558
Michal Klocek
Refactor QChart API...
r1577 createDefaultAxes();
Jani Honkonen
coding style fixes for examples
r2098 setAxisX(axis, series);
Michal Klocek
Refactors internals...
r2273 axisY()->setTitleText("Crops");
Michal Klocek
Refactors QAxis to QAbstractAxis...
r1541
sauimone
splitted barchartdrilldown example to separate files
r903 setTitle(series->name());
}
sauimone
removed double signal emitting from barseries/set
r1563 void DrilldownChart::handleClicked(int index, QBarSet *barset)
sauimone
splitted barchartdrilldown example to separate files
r903 {
Q_UNUSED(barset)
Jani Honkonen
more coding style fixes for examples...
r2102 DrilldownBarSeries *series = static_cast<DrilldownBarSeries *>(sender());
sauimone
removed categories from barseries. categories are now only on axis
r1321 changeSeries(series->drilldownSeries(index));
sauimone
splitted barchartdrilldown example to separate files
r903 }
sauimone
added missing moc to barchart drilldown example
r904
#include "moc_drilldownchart.cpp"