##// END OF EJS Templates
Remove opengl dependency from oscilloscope demos....
Remove opengl dependency from oscilloscope demos. These demos do not actually use opengl for anything, so no need for the dependency. This dependency also breaks the demos in android. Change-Id: I4da2a83f11fddd416034821d233f0543ee0900ed Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r2483:f494279b6366
r2525:5407eb4cd85a
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"