##// END OF EJS Templates
Added label to boxset...
Added label to boxset Change-Id: Idbdffa578a9a4e99f6a9cb3aa93b602ea070c75e Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r2433:4d17a12f375e
r2513:aab694c96f4f
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)
Jani Honkonen
coding style fixes for examples
r2098 : QChart(parent, wFlags),
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"