##// END OF EJS Templates
Added possibility to set duration and easing curve for chart animation...
Added possibility to set duration and easing curve for chart animation Changed the animation API so that it's possible to change the duration and easing curve of the chart animation. Change-Id: I2ab3e0664a7f30bc2bb7085daa1d97181edb90ba Task-number: QTRD-3496 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2788:67af712ca4a0
r2804:97642714ab1e
Show More
chartsqml2_plugin.cpp
317 lines | 17.3 KiB | text/x-c | CppLexer
/ src / chartsqml2 / chartsqml2_plugin.cpp
Jani Honkonen
Add/modify license headers
r830 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
Jani Honkonen
Add/modify license headers
r830 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
Jani Honkonen
Add/modify license headers
r830 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Jani Honkonen
Add/modify license headers
r830 **
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.
Jani Honkonen
Add/modify license headers
r830 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
Jani Honkonen
Add/modify license headers
r830 **
****************************************************************************/
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QChart>
#include <QtCharts/QAbstractAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QLogValueAxis>
Tero Ahola
Added CategoryAxis and CategoryRange to QML API
r1870 #include "declarativecategoryaxis.h"
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QBarCategoryAxis>
Jani Honkonen
First draft of project structure
r1 #include "declarativechart.h"
Miikka Heikkinen
Add Polar chart support...
r2483 #include "declarativepolarchart.h"
Tero Ahola
d
r722 #include "declarativexypoint.h"
Tero Ahola
Dynamic data for QML pie and line series
r215 #include "declarativelineseries.h"
Tero Ahola
Spline to QML API
r732 #include "declarativesplineseries.h"
Tero Ahola
Added area series to QML api
r847 #include "declarativeareaseries.h"
Tero Ahola
Spline to QML API
r732 #include "declarativescatterseries.h"
Tero Ahola
Added QML api for bar series
r646 #include "declarativebarseries.h"
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 #include "declarativeboxplotseries.h"
Tero Ahola
Dynamic data for QML pie and line series
r215 #include "declarativepieseries.h"
Tero Ahola
Added axisXTop and axisYRight properties to QML series APIs
r2296 #include "declarativeaxes.h"
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QVXYModelMapper>
#include <QtCharts/QHXYModelMapper>
#include <QtCharts/QHPieModelMapper>
#include <QtCharts/QVPieModelMapper>
#include <QtCharts/QHBarModelMapper>
#include <QtCharts/QVBarModelMapper>
Tero Ahola
Added ChartView.minimumMargins to QML properties
r1928 #include "declarativemargins.h"
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QAreaLegendMarker>
#include <QtCharts/QBarLegendMarker>
#include <QtCharts/QPieLegendMarker>
#include <QtCharts/QXYLegendMarker>
#include <QtCharts/QBoxPlotModelMapper>
#include <QtCharts/QVBoxPlotModelMapper>
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 #ifndef QT_ON_ARM
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QDateTimeAxis>
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 #endif
Titta Heikkala
Fix include syntax...
r2714 #include <QtCore/QAbstractItemModel>
Titta Heikkala
Qt Charts project file structure change...
r2712 #include <QtQml>
Jani Honkonen
Adding metatype declarations in qml plugin for Qt5...
r2257
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_USE_NAMESPACE
Jani Honkonen
Adding metatype declarations in qml plugin for Qt5...
r2257
Titta Heikkala
Qt Charts project file structure change...
r2712 QML_DECLARE_TYPE(QList<QPieSlice *>)
QML_DECLARE_TYPE(QList<QBarSet *>)
QML_DECLARE_TYPE(QList<QAbstractAxis *>)
Jani Honkonen
Adding metatype declarations in qml plugin for Qt5...
r2257
Titta Heikkala
Qt Charts project file structure change...
r2712 QML_DECLARE_TYPE(DeclarativeChart)
QML_DECLARE_TYPE(DeclarativePolarChart)
QML_DECLARE_TYPE(DeclarativeMargins)
QML_DECLARE_TYPE(DeclarativeAreaSeries)
QML_DECLARE_TYPE(DeclarativeBarSeries)
QML_DECLARE_TYPE(DeclarativeBarSet)
QML_DECLARE_TYPE(DeclarativeBoxPlotSeries)
QML_DECLARE_TYPE(DeclarativeBoxSet)
QML_DECLARE_TYPE(DeclarativeLineSeries)
QML_DECLARE_TYPE(DeclarativePieSeries)
QML_DECLARE_TYPE(DeclarativePieSlice)
QML_DECLARE_TYPE(DeclarativeScatterSeries)
QML_DECLARE_TYPE(DeclarativeSplineSeries)
Jani Honkonen
Adding metatype declarations in qml plugin for Qt5...
r2257
Titta Heikkala
Qt Charts project file structure change...
r2712 QML_DECLARE_TYPE(QAbstractAxis)
QML_DECLARE_TYPE(QValueAxis)
QML_DECLARE_TYPE(QBarCategoryAxis)
QML_DECLARE_TYPE(QCategoryAxis)
QML_DECLARE_TYPE(QDateTimeAxis)
QML_DECLARE_TYPE(QLogValueAxis)
Andy Shaw
Add QVBoxPlotModelMapper and QBoxPlotModelMapper as types for QtQuick 2...
r2705
Titta Heikkala
Qt Charts project file structure change...
r2712 QML_DECLARE_TYPE(QLegend)
QML_DECLARE_TYPE(QLegendMarker)
QML_DECLARE_TYPE(QAreaLegendMarker)
QML_DECLARE_TYPE(QBarLegendMarker)
QML_DECLARE_TYPE(QPieLegendMarker)
Jani Honkonen
Adding metatype declarations in qml plugin for Qt5...
r2257
Titta Heikkala
Qt Charts project file structure change...
r2712 QML_DECLARE_TYPE(QHPieModelMapper)
QML_DECLARE_TYPE(QHXYModelMapper)
QML_DECLARE_TYPE(QPieModelMapper)
QML_DECLARE_TYPE(QHBarModelMapper)
QML_DECLARE_TYPE(QBarModelMapper)
QML_DECLARE_TYPE(QVBarModelMapper)
QML_DECLARE_TYPE(QVPieModelMapper)
QML_DECLARE_TYPE(QVXYModelMapper)
QML_DECLARE_TYPE(QXYLegendMarker)
QML_DECLARE_TYPE(QXYModelMapper)
QML_DECLARE_TYPE(QBoxPlotModelMapper)
QML_DECLARE_TYPE(QVBoxPlotModelMapper)
Jani Honkonen
Adding metatype declarations in qml plugin for Qt5...
r2257
Titta Heikkala
Qt Charts project file structure change...
r2712 QML_DECLARE_TYPE(QAbstractSeries)
QML_DECLARE_TYPE(QXYSeries)
QML_DECLARE_TYPE(QAbstractBarSeries)
QML_DECLARE_TYPE(QBarSeries)
QML_DECLARE_TYPE(QBarSet)
QML_DECLARE_TYPE(QAreaSeries)
QML_DECLARE_TYPE(QHorizontalBarSeries)
QML_DECLARE_TYPE(QHorizontalPercentBarSeries)
QML_DECLARE_TYPE(QHorizontalStackedBarSeries)
QML_DECLARE_TYPE(QLineSeries)
QML_DECLARE_TYPE(QPercentBarSeries)
QML_DECLARE_TYPE(QPieSeries)
QML_DECLARE_TYPE(QPieSlice)
QML_DECLARE_TYPE(QScatterSeries)
QML_DECLARE_TYPE(QSplineSeries)
QML_DECLARE_TYPE(QStackedBarSeries)
Jani Honkonen
First draft of project structure
r1
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Tero Ahola
Fixed a build issue with metatype declaration in decl plugin
r2117
Titta Heikkala
Qt Charts project file structure change...
r2712 class QtChartsQml2Plugin : public QQmlExtensionPlugin
Jani Honkonen
First draft of project structure
r1 {
Q_OBJECT
Marek Rosa
Qt5: declarative fix part1...
r2052
Miikka Heikkinen
Generate charts plugin for QtQuick2 as well as QtQuick1...
r2488 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
Marek Rosa
Qt5: declarative fix part1...
r2052
Jani Honkonen
coding style fixes for plugins
r2101 public:
Jani Honkonen
First draft of project structure
r1 virtual void registerTypes(const char *uri)
{
Titta Heikkala
Qt Charts project file structure change...
r2712 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCharts"));
// @uri QtCharts
Tero Ahola
Dynamic data for QML pie and line series
r215
Tero Ahola
List of slices and barsets as metatypes in decl plugin
r2116 qRegisterMetaType<QList<QPieSlice *> >();
qRegisterMetaType<QList<QBarSet *> >();
Tero Ahola
Added axisXTop and axisYRight properties to QML series APIs
r2296 qRegisterMetaType<QList<QAbstractAxis *> >();
Tero Ahola
List of slices and barsets as metatypes in decl plugin
r2116
Titta Heikkala
Qt Charts project file structure change...
r2712 // QtCharts 1.0
Tero Ahola
Draft version for QML PieSeries model API
r1130 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
Tero Ahola
Renamed XyPoint to XYPoint
r1532 qmlRegisterType<DeclarativeXYPoint>(uri, 1, 0, "XYPoint");
Tero Ahola
Proposal for QML data API
r196 qmlRegisterType<DeclarativeScatterSeries>(uri, 1, 0, "ScatterSeries");
Tero Ahola
Dynamic data for QML pie and line series
r215 qmlRegisterType<DeclarativeLineSeries>(uri, 1, 0, "LineSeries");
Tero Ahola
Spline to QML API
r732 qmlRegisterType<DeclarativeSplineSeries>(uri, 1, 0, "SplineSeries");
Tero Ahola
Added area series to QML api
r847 qmlRegisterType<DeclarativeAreaSeries>(uri, 1, 0, "AreaSeries");
sauimone
GroupedBarSeries to BarSeries
r1594 qmlRegisterType<DeclarativeBarSeries>(uri, 1, 0, "BarSeries");
Tero Ahola
Added stacked and percent bar series to QML api
r1318 qmlRegisterType<DeclarativeStackedBarSeries>(uri, 1, 0, "StackedBarSeries");
qmlRegisterType<DeclarativePercentBarSeries>(uri, 1, 0, "PercentBarSeries");
Tero Ahola
Dynamic data for QML pie and line series
r215 qmlRegisterType<DeclarativePieSeries>(uri, 1, 0, "PieSeries");
Tero Ahola
Removed DeclarativePieSlice; properties in QPieSlice now
r1329 qmlRegisterType<QPieSlice>(uri, 1, 0, "PieSlice");
Tero Ahola
QML demo with dynamic data
r1240 qmlRegisterType<DeclarativeBarSet>(uri, 1, 0, "BarSet");
Tero Ahola
XY model mappers to QML api
r1278 qmlRegisterType<QHXYModelMapper>(uri, 1, 0, "HXYModelMapper");
qmlRegisterType<QVXYModelMapper>(uri, 1, 0, "VXYModelMapper");
qmlRegisterType<QHPieModelMapper>(uri, 1, 0, "HPieModelMapper");
qmlRegisterType<QVPieModelMapper>(uri, 1, 0, "VPieModelMapper");
Tero Ahola
Bar model mapper to Qml custom model demo
r1313 qmlRegisterType<QHBarModelMapper>(uri, 1, 0, "HBarModelMapper");
qmlRegisterType<QVBarModelMapper>(uri, 1, 0, "VBarModelMapper");
Andy Shaw
Add QVBoxPlotModelMapper and QBoxPlotModelMapper as types for QtQuick 2...
r2705
Tero Ahola
QML API versioning to QtCommercial.Chart 1.1
r1857 qmlRegisterType<QValueAxis>(uri, 1, 0, "ValuesAxis");
Marek Rosa
QBarCategoriesAxis renamed to QBarCategoryAxis
r1808 qmlRegisterType<QBarCategoryAxis>(uri, 1, 0, "BarCategoriesAxis");
Tero Ahola
Qml ChartView properties; legend to use Qt alignments
r1357 qmlRegisterUncreatableType<QLegend>(uri, 1, 0, "Legend",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: Legend."));
Tero Ahola
Documenting xy-series
r1491 qmlRegisterUncreatableType<QXYSeries>(uri, 1, 0, "XYSeries",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: XYSeries."));
Tero Ahola
Added new model mappers for pie to QML api
r1249 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 0, "AbstractItemModel",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: AbstractItemModel."));
Tero Ahola
XY model mappers to QML api
r1278 qmlRegisterUncreatableType<QXYModelMapper>(uri, 1, 0, "XYModelMapper",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: XYModelMapper."));
Tero Ahola
Added new model mappers for pie to QML api
r1249 qmlRegisterUncreatableType<QPieModelMapper>(uri, 1, 0, "PieModelMapper",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: PieModelMapper."));
Tero Ahola
Bar model mapper to Qml custom model demo
r1313 qmlRegisterUncreatableType<QBarModelMapper>(uri, 1, 0, "BarModelMapper",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: BarModelMapper."));
Tero Ahola
QML demo with dynamic data
r1240 qmlRegisterUncreatableType<QAbstractSeries>(uri, 1, 0, "AbstractSeries",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: AbstractSeries."));
Michal Klocek
Adds axis to qml...
r1604 qmlRegisterUncreatableType<QAbstractBarSeries>(uri, 1, 0, "AbstractBarSeries",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: AbstractBarSeries."));
Tero Ahola
Added value and category axis to QML api
r1550 qmlRegisterUncreatableType<QAbstractAxis>(uri, 1, 0, "AbstractAxis",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
Tero Ahola
Fixed QML BarSet::remove
r1908 qmlRegisterUncreatableType<QBarSet>(uri, 1, 0, "BarSetBase",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: BarsetBase."));
Tero Ahola
Bugfix: Define pie model mapper outside series scope
r1926 qmlRegisterUncreatableType<QPieSeries>(uri, 1, 0, "QPieSeries",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: QPieSeries. Use PieSeries instead."));
Tero Ahola
Added axisXTop and axisYRight properties to QML series APIs
r2296 qmlRegisterUncreatableType<DeclarativeAxes>(uri, 1, 0, "DeclarativeAxes",
QLatin1String("Trying to create uncreatable: DeclarativeAxes."));
Tero Ahola
QML API versioning to QtCommercial.Chart 1.1
r1857
Titta Heikkala
Qt Charts project file structure change...
r2712 // QtCharts 1.1
Tero Ahola
Added ChartView.minimumMargins to QML properties
r1928 qmlRegisterType<DeclarativeChart, 1>(uri, 1, 1, "ChartView");
Tero Ahola
QML API versioning to QtCommercial.Chart 1.1
r1857 qmlRegisterType<DeclarativeScatterSeries, 1>(uri, 1, 1, "ScatterSeries");
qmlRegisterType<DeclarativeLineSeries, 1>(uri, 1, 1, "LineSeries");
qmlRegisterType<DeclarativeSplineSeries, 1>(uri, 1, 1, "SplineSeries");
qmlRegisterType<DeclarativeAreaSeries, 1>(uri, 1, 1, "AreaSeries");
qmlRegisterType<DeclarativeBarSeries, 1>(uri, 1, 1, "BarSeries");
qmlRegisterType<DeclarativeStackedBarSeries, 1>(uri, 1, 1, "StackedBarSeries");
qmlRegisterType<DeclarativePercentBarSeries, 1>(uri, 1, 1, "PercentBarSeries");
qmlRegisterType<DeclarativeHorizontalBarSeries, 1>(uri, 1, 1, "HorizontalBarSeries");
qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 1>(uri, 1, 1, "HorizontalStackedBarSeries");
qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 1>(uri, 1, 1, "HorizontalPercentBarSeries");
qmlRegisterType<DeclarativePieSeries>(uri, 1, 1, "PieSeries");
qmlRegisterType<DeclarativeBarSet>(uri, 1, 1, "BarSet");
Tero Ahola
Added missing count property to QBarCategoryAxis
r2249 qmlRegisterType<QValueAxis>(uri, 1, 1, "ValueAxis");
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 #ifndef QT_ON_ARM
Tero Ahola
Added CategoryAxis and CategoryRange to QML API
r1870 qmlRegisterType<QDateTimeAxis>(uri, 1, 1, "DateTimeAxis");
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 #endif
Tero Ahola
Added CategoryAxis and CategoryRange to QML API
r1870 qmlRegisterType<DeclarativeCategoryAxis>(uri, 1, 1, "CategoryAxis");
qmlRegisterType<DeclarativeCategoryRange>(uri, 1, 1, "CategoryRange");
Tero Ahola
QML API versioning to QtCommercial.Chart 1.1
r1857 qmlRegisterType<QBarCategoryAxis>(uri, 1, 1, "BarCategoryAxis");
Tero Ahola
Added ChartView.minimumMargins to QML properties
r1928 qmlRegisterUncreatableType<DeclarativeMargins>(uri, 1, 1, "Margins",
Marek Rosa
QDateTimeAxis: qml on arm not registering the type anymore
r1942 QLatin1String("Trying to create uncreatable: Margins."));
Michal Klocek
Rename minimumMargins to margins in QML plugin version 1.2
r2090
Titta Heikkala
Qt Charts project file structure change...
r2712 // QtCharts 1.2
Michal Klocek
Rename minimumMargins to margins in QML plugin version 1.2
r2090 qmlRegisterType<DeclarativeChart, 2>(uri, 1, 2, "ChartView");
Tero Ahola
Added axisXTop and axisYRight properties to QML series APIs
r2296 qmlRegisterType<DeclarativeScatterSeries, 2>(uri, 1, 2, "ScatterSeries");
qmlRegisterType<DeclarativeLineSeries, 2>(uri, 1, 2, "LineSeries");
qmlRegisterType<DeclarativeSplineSeries, 2>(uri, 1, 2, "SplineSeries");
qmlRegisterType<DeclarativeAreaSeries, 2>(uri, 1, 2, "AreaSeries");
qmlRegisterType<DeclarativeBarSeries, 2>(uri, 1, 2, "BarSeries");
qmlRegisterType<DeclarativeStackedBarSeries, 2>(uri, 1, 2, "StackedBarSeries");
qmlRegisterType<DeclarativePercentBarSeries, 2>(uri, 1, 2, "PercentBarSeries");
qmlRegisterType<DeclarativeHorizontalBarSeries, 2>(uri, 1, 2, "HorizontalBarSeries");
qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 2>(uri, 1, 2, "HorizontalStackedBarSeries");
qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 2>(uri, 1, 2, "HorizontalPercentBarSeries");
Miikka Heikkinen
Add Polar chart support...
r2483
Titta Heikkala
Qt Charts project file structure change...
r2712 // QtCharts 1.3
Miikka Heikkinen
Add API to specify plot area background....
r2498 qmlRegisterType<DeclarativeChart, 3>(uri, 1, 3, "ChartView");
Miikka Heikkinen
Add Polar chart support...
r2483 qmlRegisterType<DeclarativePolarChart, 1>(uri, 1, 3, "PolarChartView");
qmlRegisterType<DeclarativeSplineSeries, 3>(uri, 1, 3, "SplineSeries");
qmlRegisterType<DeclarativeScatterSeries, 3>(uri, 1, 3, "ScatterSeries");
qmlRegisterType<DeclarativeLineSeries, 3>(uri, 1, 3, "LineSeries");
qmlRegisterType<DeclarativeAreaSeries, 3>(uri, 1, 3, "AreaSeries");
Miikka Heikkinen
QML support for LogValueAxis...
r2493 qmlRegisterType<QLogValueAxis>(uri, 1, 3, "LogValueAxis");
Mika Salmela
A new box-and-whiskers series type added to charts....
r2548 qmlRegisterType<DeclarativeBoxPlotSeries>(uri, 1, 3, "BoxPlotSeries");
qmlRegisterType<DeclarativeBoxSet>(uri, 1, 3, "BoxSet");
Titta Heikkala
Add possibility to set brush image via QML API...
r2681
Titta Heikkala
Qt Charts project file structure change...
r2712 // QtCharts 1.4
Titta Heikkala
Add possibility to set brush image via QML API...
r2681 qmlRegisterType<DeclarativeAreaSeries, 4>(uri, 1, 4, "AreaSeries");
qmlRegisterType<DeclarativeBarSet, 2>(uri, 1, 4, "BarSet");
qmlRegisterType<DeclarativeBoxPlotSeries, 1>(uri, 1, 4, "BoxPlotSeries");
qmlRegisterType<DeclarativeBoxSet, 1>(uri, 1, 4, "BoxSet");
qmlRegisterType<DeclarativePieSlice>(uri, 1, 4, "PieSlice");
qmlRegisterType<DeclarativeScatterSeries, 4>(uri, 1, 4, "ScatterSeries");
Andy Shaw
Add QVBoxPlotModelMapper and QBoxPlotModelMapper as types for QtQuick 2...
r2705
Titta Heikkala
Qt Charts project file structure change...
r2712 // QtCharts 2.0
Andy Shaw
Add QVBoxPlotModelMapper and QBoxPlotModelMapper as types for QtQuick 2...
r2705 qmlRegisterType<QVBoxPlotModelMapper>(uri, 2, 0, "VBoxPlotModelMapper");
qmlRegisterUncreatableType<QBoxPlotModelMapper>(uri, 2, 0, "BoxPlotModelMapper",
QLatin1String("Trying to create uncreatable: BoxPlotModelMapper."));
Miikka Heikkinen
Added QChart::localizeNumbers...
r2707 qmlRegisterType<DeclarativeChart, 4>(uri, 2, 0, "ChartView");
Titta Heikkala
Qt Charts project file structure change...
r2712 qmlRegisterType<DeclarativeXYPoint>(uri, 2, 0, "XYPoint");
Miikka Heikkinen
Misc fixes...
r2710 qmlRegisterType<DeclarativeScatterSeries, 4>(uri, 2, 0, "ScatterSeries");
Titta Heikkala
Qt Charts project file structure change...
r2712 qmlRegisterType<DeclarativeLineSeries, 3>(uri, 2, 0, "LineSeries");
Miikka Heikkinen
Misc fixes...
r2710 qmlRegisterType<DeclarativeSplineSeries, 3>(uri, 2, 0, "SplineSeries");
qmlRegisterType<DeclarativeAreaSeries, 4>(uri, 2, 0, "AreaSeries");
qmlRegisterType<DeclarativeBarSeries, 2>(uri, 2, 0, "BarSeries");
qmlRegisterType<DeclarativeStackedBarSeries, 2>(uri, 2, 0, "StackedBarSeries");
qmlRegisterType<DeclarativePercentBarSeries, 2>(uri, 2, 0, "PercentBarSeries");
qmlRegisterType<DeclarativePieSeries>(uri, 2, 0, "PieSeries");
Titta Heikkala
Qt Charts project file structure change...
r2712 qmlRegisterType<QPieSlice>(uri, 2, 0, "PieSlice");
qmlRegisterType<DeclarativeBarSet, 2>(uri, 2, 0, "BarSet");
Miikka Heikkinen
Misc fixes...
r2710 qmlRegisterType<QHXYModelMapper>(uri, 2, 0, "HXYModelMapper");
qmlRegisterType<QVXYModelMapper>(uri, 2, 0, "VXYModelMapper");
qmlRegisterType<QHPieModelMapper>(uri, 2, 0, "HPieModelMapper");
qmlRegisterType<QVPieModelMapper>(uri, 2, 0, "VPieModelMapper");
qmlRegisterType<QHBarModelMapper>(uri, 2, 0, "HBarModelMapper");
qmlRegisterType<QVBarModelMapper>(uri, 2, 0, "VBarModelMapper");
qmlRegisterType<QValueAxis>(uri, 2, 0, "ValueAxis");
#ifndef QT_ON_ARM
qmlRegisterType<QDateTimeAxis>(uri, 2, 0, "DateTimeAxis");
#endif
qmlRegisterType<DeclarativeCategoryAxis>(uri, 2, 0, "CategoryAxis");
qmlRegisterType<DeclarativeCategoryRange>(uri, 2, 0, "CategoryRange");
qmlRegisterType<QBarCategoryAxis>(uri, 2, 0, "BarCategoryAxis");
Titta Heikkala
Qt Charts project file structure change...
r2712 qmlRegisterType<DeclarativePolarChart, 1>(uri, 2, 0, "PolarChartView");
qmlRegisterType<QLogValueAxis, 1>(uri, 2, 0, "LogValueAxis");
qmlRegisterType<DeclarativeBoxPlotSeries, 1>(uri, 2, 0, "BoxPlotSeries");
qmlRegisterType<DeclarativeBoxSet, 1>(uri, 2, 0, "BoxSet");
qmlRegisterType<DeclarativeHorizontalBarSeries, 2>(uri, 2, 0, "HorizontalBarSeries");
qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 2>(uri, 2, 0, "HorizontalStackedBarSeries");
qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 2>(uri, 2, 0, "HorizontalPercentBarSeries");
qmlRegisterType<DeclarativePieSlice>(uri, 2, 0, "PieSlice");
Miikka Heikkinen
Misc fixes...
r2710 qmlRegisterUncreatableType<QLegend>(uri, 2, 0, "Legend",
QLatin1String("Trying to create uncreatable: Legend."));
qmlRegisterUncreatableType<QXYSeries>(uri, 2, 0, "XYSeries",
QLatin1String("Trying to create uncreatable: XYSeries."));
qmlRegisterUncreatableType<QAbstractItemModel>(uri, 2, 0, "AbstractItemModel",
QLatin1String("Trying to create uncreatable: AbstractItemModel."));
qmlRegisterUncreatableType<QXYModelMapper>(uri, 2, 0, "XYModelMapper",
QLatin1String("Trying to create uncreatable: XYModelMapper."));
qmlRegisterUncreatableType<QPieModelMapper>(uri, 2, 0, "PieModelMapper",
QLatin1String("Trying to create uncreatable: PieModelMapper."));
qmlRegisterUncreatableType<QBarModelMapper>(uri, 2, 0, "BarModelMapper",
QLatin1String("Trying to create uncreatable: BarModelMapper."));
qmlRegisterUncreatableType<QAbstractSeries>(uri, 2, 0, "AbstractSeries",
QLatin1String("Trying to create uncreatable: AbstractSeries."));
qmlRegisterUncreatableType<QAbstractBarSeries>(uri, 2, 0, "AbstractBarSeries",
QLatin1String("Trying to create uncreatable: AbstractBarSeries."));
qmlRegisterUncreatableType<QAbstractAxis>(uri, 2, 0, "AbstractAxis",
QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
qmlRegisterUncreatableType<QBarSet>(uri, 2, 0, "BarSetBase",
QLatin1String("Trying to create uncreatable: BarsetBase."));
qmlRegisterUncreatableType<QPieSeries>(uri, 2, 0, "QPieSeries",
QLatin1String("Trying to create uncreatable: QPieSeries. Use PieSeries instead."));
qmlRegisterUncreatableType<DeclarativeAxes>(uri, 2, 0, "DeclarativeAxes",
Titta Heikkala
Qt Charts project file structure change...
r2712 QLatin1String("Trying to create uncreatable: DeclarativeAxes."));
Miikka Heikkinen
Misc fixes...
r2710 qmlRegisterUncreatableType<DeclarativeMargins>(uri, 2, 0, "Margins",
QLatin1String("Trying to create uncreatable: Margins."));
Titta Heikkala
Added possibility to set labels position for QCategoryAxis...
r2780
// QtCharts 2.1
qmlRegisterType<DeclarativeCategoryAxis, 1>(uri, 2, 1, "CategoryAxis");
Titta Heikkala
Add possibility to set reverse values to axes...
r2781 qmlRegisterUncreatableType<QAbstractAxis>(uri, 2, 1, "AbstractAxis",
QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
Titta Heikkala
Added zooming functions to ChartView...
r2788 qmlRegisterType<DeclarativeChart, 5>(uri, 2, 1, "ChartView");
Jani Honkonen
First draft of project structure
r1 }
Titta Heikkala
Added possibility to set labels position for QCategoryAxis...
r2780
Jani Honkonen
First draft of project structure
r1 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Andy Shaw
Fix build for iOS and for building the QtQuick 2 plugin statically...
r2680
Titta Heikkala
Qt Charts project file structure change...
r2712 #include "chartsqml2_plugin.moc"
Tero Ahola
Proof-of-concept for QML api...
r120
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_USE_NAMESPACE