##// END OF EJS Templates
List of slices and barsets as metatypes in decl plugin
Tero Ahola -
r2116:5a239414c20a
parent child
Show More
@@ -52,6 +52,8
52 #endif
52 #endif
53
53
54 QTCOMMERCIALCHART_BEGIN_NAMESPACE
54 QTCOMMERCIALCHART_BEGIN_NAMESPACE
55 Q_DECLARE_METATYPE(QList<QPieSlice *>)
56 Q_DECLARE_METATYPE(QList<QBarSet *>)
55
57
56 class ChartQmlPlugin : public QDeclarativeExtensionPlugin
58 class ChartQmlPlugin : public QDeclarativeExtensionPlugin
57 {
59 {
@@ -67,6 +69,9 public:
67 {
69 {
68 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCommercial.Chart"));
70 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCommercial.Chart"));
69
71
72 qRegisterMetaType<QList<QPieSlice *> >();
73 qRegisterMetaType<QList<QBarSet *> >();
74
70 // QtCommercial.Chart 1.0
75 // QtCommercial.Chart 1.0
71 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
76 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
72 qmlRegisterType<DeclarativeXYPoint>(uri, 1, 0, "XYPoint");
77 qmlRegisterType<DeclarativeXYPoint>(uri, 1, 0, "XYPoint");
@@ -293,7 +293,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE
293 */
293 */
294 /*!
294 /*!
295 \qmlproperty LabelPosition PieSlice::labelPosition
295 \qmlproperty LabelPosition PieSlice::labelPosition
296 Position of the slice label. One of PieSlice.LabelOutside or PieSlice.LabelInside.
296 Position of the slice label. One of PieSlice.LabelOutside, PieSlice.LabelInsideHorizontal,
297 PieSlice.LabelInsideTangential or PieSlice.LabelInsideNormal. By default the position is
298 PieSlice.LabelOutside.
297 \sa labelVisible
299 \sa labelVisible
298 */
300 */
299
301
General Comments 0
You need to be logged in to leave comments. Login now