##// END OF EJS Templates
Adds missing titleFont getter
Michal Klocek -
r895:e1836287ee79
parent child
Show More
@@ -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
@@ -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 */
@@ -57,6 +57,7 QChartView::QChartView(QChart *chart,QWidget *parent) :
57 57 QGraphicsView(parent),
58 58 d_ptr(new QChartViewPrivate())
59 59 {
60 Q_ASSERT(chart);
60 61 d_ptr->m_scene = new QGraphicsScene(this);
61 62 d_ptr->m_chart = chart;
62 63 setFrameShape(QFrame::NoFrame);
General Comments 0
You need to be logged in to leave comments. Login now