##// END OF EJS Templates
Updated QML Oscilloscope documentation...
Updated QML Oscilloscope documentation Updated explanation about environment variable usage so that it reflects the one used with Qt5. Change-Id: I5cedcf3db73ebc0b8e02181e00d5c8cc56b10e8b Task-number: QTRD-3509 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2776:bc1f6aa59d42
r2819:3a89e3fee61a
Show More
drilldownchart.cpp
58 lines | 1.6 KiB | text/x-c | CppLexer
sauimone
splitted barchartdrilldown example to separate files
r903 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
sauimone
splitted barchartdrilldown example to separate files
r903 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
sauimone
splitted barchartdrilldown example to separate files
r903 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
sauimone
splitted barchartdrilldown example to separate files
r903 **
Titta Heikkala
Updated license headers...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
Titta Heikkala
Copyright header changes...
r2776 ** agreement between you and The Qt Company.
sauimone
splitted barchartdrilldown example to separate files
r903 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
sauimone
splitted barchartdrilldown example to separate files
r903 **
****************************************************************************/
#include "drilldownchart.h"
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QBarCategoryAxis>
sauimone
splitted barchartdrilldown example to separate files
r903
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_USE_NAMESPACE
sauimone
splitted barchartdrilldown example to separate files
r903
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"