##// END OF EJS Templates
Adding metatype declarations in qml plugin for Qt5...
Adding metatype declarations in qml plugin for Qt5 Not sure why they are needed for Qt5. Definetly NOT needed for Qt4.

File last commit:

r2205:17232900e42e
r2257:b97c592cff78
Show More
drilldownchart.cpp
60 lines | 1.6 KiB | text/x-c | CppLexer
sauimone
splitted barchartdrilldown example to separate files
r903 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** 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);
Marek Rosa
Added axis title to stackedbarchartdrilldown example
r2205 axisY()->setTitle("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"