@@ -31,9 +31,8 DrilldownChart::DrilldownChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) | |||
|
31 | 31 | |
|
32 | 32 | void DrilldownChart::changeSeries(QAbstractSeries *series) |
|
33 | 33 | { |
|
34 |
if (m_currentSeries) |
|
|
34 | if (m_currentSeries) | |
|
35 | 35 | removeSeries(m_currentSeries); |
|
36 | } | |
|
37 | 36 | m_currentSeries = series; |
|
38 | 37 | addSeries(series); |
|
39 | 38 | setTitle(series->name()); |
@@ -43,7 +42,6 void DrilldownChart::changeSeries(QAbstractSeries *series) | |||
|
43 | 42 | void DrilldownChart::handleClicked(QBarSet *barset, QString category) |
|
44 | 43 | { |
|
45 | 44 | Q_UNUSED(barset) |
|
46 | Q_UNUSED(button) | |
|
47 | 45 | DrilldownBarSeries* series = static_cast<DrilldownBarSeries*> (sender()); |
|
48 | 46 | changeSeries(series->drilldownSeries(category)); |
|
49 | 47 | } |
General Comments 0
You need to be logged in to leave comments.
Login now