##// END OF EJS Templates
Title and name of QSeries replaced with name
Tero Ahola -
r731:90a16700f8b3
parent child
Show More
@@ -48,17 +48,18
48 */
48 */
49
49
50 /*!
50 /*!
51 \fn void QSeries::setTitle(QString title)
51 \fn void QSeries::setName(QString name)
52 \brief Sets a \a title for the series.
52 \brief Sets a \a name for the series.
53
53
54 This is not used directly by the chart itself. It is up to the user to use this as for example
54 The name of a series is shown in the legend for QXYSeries.
55 chart title.
55 \sa QChart::setTitle()
56 \sa QChart::setChartTitle()
56 \sa QPieSlice::setName()
57 \sa QBarSet::setName()
57 */
58 */
58
59
59 /*!
60 /*!
60 \fn QString QSeries::title()
61 \fn QString QSeries::name()
61 \brief Returns the title of the series.
62 \brief Returns the name of the series.
62 */
63 */
63
64
64 QTCOMMERCIALCHART_BEGIN_NAMESPACE
65 QTCOMMERCIALCHART_BEGIN_NAMESPACE
@@ -29,18 +29,16 protected:
29 public:
29 public:
30 virtual ~QSeries() {}
30 virtual ~QSeries() {}
31 virtual QSeriesType type() const = 0;
31 virtual QSeriesType type() const = 0;
32 QString name() { return QString("TODO: Name QSeries"); }
33 // TODO
32 // TODO
34 virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
33 virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
35
34 void setName(QString name) { m_name = name; }
36 void setTitle(QString title) { m_title = title; }
35 QString name() { return m_name; }
37 QString title() { return m_title; }
38
36
39 protected:
37 protected:
40 QAbstractItemModel* m_model;
38 QAbstractItemModel* m_model;
41
39
42 private:
40 private:
43 QString m_title;
41 QString m_name;
44 };
42 };
45
43
46 QTCOMMERCIALCHART_END_NAMESPACE
44 QTCOMMERCIALCHART_END_NAMESPACE
General Comments 0
You need to be logged in to leave comments. Login now