18#include "krscriptchart.h"
19#include "KReportItemChart.h"
24Chart::Chart(KReportItemChart *c)
34QPointF Chart::position()
36 return m_chart->m_pos.toPoint();
38void Chart::setPosition(
const QPointF& p)
40 m_chart->m_pos.setPointPos(p);
45 return m_chart->m_size.toPoint();
47void Chart::setSize(
const QSizeF& s)
49 m_chart->m_size.setPointSize(s);
52QString Chart::dataSource()
57void Chart::setDataSource(
const QString &ds)
59 m_chart->setItemDataSource(ds);
64 return m_chart->m_threeD->value().toBool();
67void Chart::setThreeD(
bool td)
69 m_chart->m_threeD->setValue(td);
72bool Chart::legendVisible()
74 return m_chart->m_displayLegend->value().toBool();
77void Chart::setLegendVisible(
bool v)
79 m_chart->m_displayLegend->setValue(v);
82int Chart::colorScheme()
84 return m_chart->m_colorScheme->value().
toInt();
87void Chart::setColorScheme(
int cs)
89 m_chart->m_colorScheme->setValue(cs);
92QColor Chart::backgroundColor()
94 return m_chart->m_backgroundColor->value().value<QColor>();
97void Chart::setBackgroundColor(
const QColor &bc)
99 m_chart->m_backgroundColor->setValue(bc);
102QString Chart::xAxisTitle()
104 return m_chart->m_xTitle->value().toString();
107void Chart::setXAxisTitle(
const QString &t)
109 m_chart->m_xTitle->setValue(t);
112QString Chart::yAxisTitle()
114 return m_chart->m_yTitle->value().toString();
117void Chart::setYAxisTitle(
const QString &t)
119 m_chart->m_yTitle->setValue(t);
QString itemDataSource() const
Field item script interface.
int toInt(bool *ok, int base) const const