8#include "ChartsPlugin.h"
14#include "RangeGroup.h"
17#include "decorations/AxisLabels.h"
18#include "decorations/GridLines.h"
19#include "decorations/LegendModel.h"
20#include "decorations/LegendLayout.h"
22#include "datasource/ArraySource.h"
23#include "datasource/ChartAxisSource.h"
24#include "datasource/ColorGradientSource.h"
25#include "datasource/HistoryProxySource.h"
26#include "datasource/MapProxySource.h"
27#include "datasource/ModelSource.h"
28#include "datasource/SingleValueSource.h"
30#include "quickcharts_export.h"
32QuickChartsPlugin::QuickChartsPlugin(
QObject *parent)
37void QuickChartsPlugin::registerTypes(
const char *uri)
41 qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
43 qmlRegisterType<PieChart>(uri, 1, 0,
"PieChart");
44 qmlRegisterType<LineChart>(uri, 1, 0,
"LineChart");
45 qmlRegisterType<BarChart>(uri, 1, 0,
"BarChart");
46 qmlRegisterUncreatableType<XYChart>(uri, 1, 0,
"XYChart", QStringLiteral(
"Just a base class"));
47 qmlRegisterUncreatableType<Chart>(uri, 1, 0,
"Chart", QStringLiteral(
"Just a base class"));
49 qmlRegisterUncreatableType<ChartDataSource>(uri, 1, 0,
"ChartDataSource", QStringLiteral(
"Just a base class"));
50 qmlRegisterType<ModelSource>(uri, 1, 0,
"ModelSource");
51 qmlRegisterType<SingleValueSource>(uri, 1, 0,
"SingleValueSource");
52 qmlRegisterType<ArraySource>(uri, 1, 0,
"ArraySource");
53 qmlRegisterType<ChartAxisSource>(uri, 1, 0,
"ChartAxisSource");
54 qmlRegisterType<ColorGradientSource>(uri, 1, 0,
"ColorGradientSource");
55 qmlRegisterType<MapProxySource>(uri, 1, 0,
"MapProxySource");
56 qmlRegisterType<HistoryProxySource>(uri, 1, 0,
"HistoryProxySource");
58 qmlRegisterUncreatableType<RangeGroup>(uri, 1, 0,
"Range", QStringLiteral(
"Used as a grouped property"));
60 qmlRegisterType<GridLines>(uri, 1, 0,
"GridLines");
61 qmlRegisterUncreatableType<LinePropertiesGroup>(uri, 1, 0,
"LinePropertiesGroup", QStringLiteral(
"Used as a grouped property"));
62 qmlRegisterType<AxisLabels>(uri, 1, 0,
"AxisLabels");
63 qmlRegisterUncreatableType<AxisLabelsAttached>(uri, 1, 0,
"AxisLabelsAttached", QStringLiteral(
"Attached property"));
64 qmlRegisterType<LegendModel>(uri, 1, 0,
"LegendModel");
65 qmlRegisterType<LegendLayout>(uri, 1, 0,
"LegendLayout");
68#include "moc_ChartsPlugin.cpp"
QString fromLatin1(QByteArrayView str)