##// END OF EJS Templates
pure virtual getter for series to QLegendMarker. In some cases user don't need the derived pointer. This removes the need to cast to derived marker type
sauimone -
r2181:1afcc57c4e2f
parent child
Show More
@@ -41,7 +41,7 public:
41 41 virtual LegendMarkerType type() { return LegendMarkerTypeArea; }
42 42
43 43 // Related series
44 QAreaSeries* series();
44 virtual QAreaSeries* series();
45 45
46 46 protected:
47 47 QAreaLegendMarker(QAreaLegendMarkerPrivate &d, QObject *parent = 0);
@@ -40,7 +40,7 public:
40 40 virtual LegendMarkerType type() { return LegendMarkerTypeBar; }
41 41
42 42 // Related series and barset
43 QAbstractBarSeries* series();
43 virtual QAbstractBarSeries* series();
44 44 QBarSet* barset();
45 45
46 46 protected:
@@ -72,6 +72,8 public:
72 72 bool isVisible() const;
73 73 void setVisible(bool visible);
74 74
75 virtual QAbstractSeries* series() = 0;
76
75 77 protected:
76 78 explicit QLegendMarker(QLegendMarkerPrivate &d, QObject *parent = 0);
77 79
@@ -42,7 +42,7 public:
42 42 virtual LegendMarkerType type() { return LegendMarkerTypePie; }
43 43
44 44 // Related series and slice
45 QPieSeries* series();
45 virtual QPieSeries* series();
46 46 QPieSlice* slice();
47 47
48 48 protected:
@@ -39,7 +39,7 public:
39 39 virtual LegendMarkerType type() { return LegendMarkerTypeXY; }
40 40
41 41 // Related series
42 QXYSeries* series();
42 virtual QXYSeries* series();
43 43
44 44 protected:
45 45 QXYLegendMarker(QXYLegendMarkerPrivate &d, QObject *parent = 0);
General Comments 0
You need to be logged in to leave comments. Login now