summaryrefslogtreecommitdiffstats
path: root/src/qchartview.cpp
diff options
context:
space:
mode:
authorsauimone <samu.uimonen@digia.com>2012-03-26 16:27:18 +0300
committersauimone <samu.uimonen@digia.com>2012-03-26 16:27:18 +0300
commit3294d4ff177ce3f5f479b80d0bbefb6ee48d17c4 (patch)
tree40df760c3a83be7428e9fa29352f09486da42c22 /src/qchartview.cpp
parent7d3fdc2fff6399a4d270c8b91d1a60389d60d32a (diff)
build fix
Diffstat (limited to 'src/qchartview.cpp')
-rw-r--r--src/qchartview.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/qchartview.cpp b/src/qchartview.cpp
index 37b59a21..7a786d07 100644
--- a/src/qchartview.cpp
+++ b/src/qchartview.cpp
@@ -356,11 +356,21 @@ QChartAxis* QChartView::axisY() const
/*!
Returns the pointer to legend object of the chart
*/
-QLegend* QChartView::legend() const
+QLegend& QChartView::legend() const
{
return m_chart->legend();
}
+QLegend* QChartView::takeLegend()
+{
+ return m_chart->takeLegend();
+}
+
+void QChartView::giveLegend(QLegend* legend)
+{
+ m_chart->giveLegend(legend);
+}
+
/*!
Sets animation \a options for the chart
*/