KReport
18 #include "krscriptchart.h"
19 #include "KReportItemChart.h"
24 Chart::Chart(KReportItemChart *c)
36 return m_chart->m_pos.
toPoint();
38 void Chart::setPosition(
const QPointF& p)
40 m_chart->m_pos.setPointPos(p);
45 return m_chart->m_size.toPoint();
49 m_chart->m_size.setPointSize(s);
54 return m_chart->itemDataSource();
57 void Chart::setDataSource(
const QString &ds)
59 m_chart->setItemDataSource(ds);
64 return m_chart->m_threeD->value().toBool();
67 void Chart::setThreeD(
bool td)
69 m_chart->m_threeD->setValue(td);
72 bool Chart::legendVisible()
74 return m_chart->m_displayLegend->value().toBool();
77 void Chart::setLegendVisible(
bool v)
79 m_chart->m_displayLegend->setValue(v);
82 int Chart::colorScheme()
84 return m_chart->m_colorScheme->value().
toInt();
87 void Chart::setColorScheme(
int cs)
89 m_chart->m_colorScheme->setValue(cs);
92 QColor Chart::backgroundColor()
94 return m_chart->m_backgroundColor->
value().value<
QColor>();
97 void Chart::setBackgroundColor(
const QColor &bc)
99 m_chart->m_backgroundColor->setValue(bc);
104 return m_chart->m_xTitle->value().toString();
107 void Chart::setXAxisTitle(
const QString &t)
109 m_chart->m_xTitle->setValue(t);
114 return m_chart->m_yTitle->value().toString();
117 void Chart::setYAxisTitle(
const QString &t)
119 m_chart->m_yTitle->setValue(t);
QSizeF size() const const
void setSize(const QSizeF &size)
int toInt(bool *ok, int base) const const
Field item script interface.
QPoint toPoint() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:17:37 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.