summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-09-26 21:46:15 +0300
committerTero Ahola <tero.ahola@digia.com>2012-09-27 09:22:48 +0300
commit5a239414c20a22182583c169dd0b33bf3db55dd5 (patch)
treefafc46ff0c9a75cddd4c10004541d3dd7cd30f5f /plugins
parent070dc48e7b5c4cb5a7bb2372fa14627197ab25eb (diff)
List of slices and barsets as metatypes in decl plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/declarative/plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/declarative/plugin.cpp b/plugins/declarative/plugin.cpp
index 108d8fe1..985908cd 100644
--- a/plugins/declarative/plugin.cpp
+++ b/plugins/declarative/plugin.cpp
@@ -52,6 +52,8 @@
#endif
QTCOMMERCIALCHART_BEGIN_NAMESPACE
+Q_DECLARE_METATYPE(QList<QPieSlice *>)
+Q_DECLARE_METATYPE(QList<QBarSet *>)
class ChartQmlPlugin : public QDeclarativeExtensionPlugin
{
@@ -67,6 +69,9 @@ public:
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCommercial.Chart"));
+ qRegisterMetaType<QList<QPieSlice *> >();
+ qRegisterMetaType<QList<QBarSet *> >();
+
// QtCommercial.Chart 1.0
qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
qmlRegisterType<DeclarativeXYPoint>(uri, 1, 0, "XYPoint");