@@ -94,6 +94,7 QChart::~QChart() | |||
|
94 | 94 | */ |
|
95 | 95 | void QChart::addSeries(QSeries* series, QChartAxis* axisY) |
|
96 | 96 | { |
|
97 | Q_ASSERT(series); | |
|
97 | 98 | d_ptr->m_dataset->addSeries(series, axisY); |
|
98 | 99 | } |
|
99 | 100 | |
@@ -105,6 +106,7 void QChart::addSeries(QSeries* series, QChartAxis* axisY) | |||
|
105 | 106 | */ |
|
106 | 107 | void QChart::removeSeries(QSeries* series) |
|
107 | 108 | { |
|
109 | Q_ASSERT(series); | |
|
108 | 110 | d_ptr->m_dataset->removeSeries(series); |
|
109 | 111 | } |
|
110 | 112 | |
@@ -172,9 +174,9 QString QChart::title() const | |||
|
172 | 174 | { |
|
173 | 175 | //TODO: refactor me |
|
174 | 176 | if (d_ptr->m_presenter->m_titleItem) |
|
175 | return d_ptr->m_presenter->m_titleItem->text(); | |
|
177 | return d_ptr->m_presenter->m_titleItem->text(); | |
|
176 | 178 | else |
|
177 | return QString(); | |
|
179 | return QString(); | |
|
178 | 180 | } |
|
179 | 181 | |
|
180 | 182 | /*! |
@@ -188,6 +190,14 void QChart::setTitleFont(const QFont& font) | |||
|
188 | 190 | d_ptr->m_presenter->updateLayout(); |
|
189 | 191 | } |
|
190 | 192 | |
|
193 | QFont QChart::titleFont() const | |
|
194 | { | |
|
195 | if (d_ptr->m_presenter->m_titleItem) | |
|
196 | return d_ptr->m_presenter->m_titleItem->font(); | |
|
197 | else | |
|
198 | return QFont(); | |
|
199 | } | |
|
200 | ||
|
191 | 201 | /*! |
|
192 | 202 | Sets the \a brush used for rendering the title text. |
|
193 | 203 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now