##// END OF EJS Templates
No errors anymore when generating docs, wohoo! For now.
Tero Ahola -
r1002:f486aabc62ff
parent child
Show More
@@ -96,9 +96,11 d_ptr(new QLegendPrivate(chart->d_ptr->m_presenter,this))
96 QObject::connect(chart->d_ptr->m_dataset,SIGNAL(seriesRemoved(QAbstractSeries *)),d_ptr.data(),SLOT(handleSeriesRemoved(QAbstractSeries *)));
96 QObject::connect(chart->d_ptr->m_dataset,SIGNAL(seriesRemoved(QAbstractSeries *)),d_ptr.data(),SLOT(handleSeriesRemoved(QAbstractSeries *)));
97 }
97 }
98
98
99 /*!
100 Destroys the legend object. Legend is always owned by a QChart, so an application should never call this.
101 */
99 QLegend::~QLegend()
102 QLegend::~QLegend()
100 {
103 {
101
102 }
104 }
103
105
104 /*!
106 /*!
@@ -209,11 +211,17 bool QLegend::isAttachedToChart()
209 return d_ptr->m_attachedToChart;
211 return d_ptr->m_attachedToChart;
210 }
212 }
211
213
214 /*!
215 Sets the legend's scrolling offset to value defined by \a point.
216 */
212 void QLegend::setOffset(const QPointF& point)
217 void QLegend::setOffset(const QPointF& point)
213 {
218 {
214 d_ptr->setOffset(point.x(),point.y());
219 d_ptr->setOffset(point.x(),point.y());
215 }
220 }
216
221
222 /*!
223 Returns the legend's scrolling offset.
224 */
217 QPointF QLegend::offset() const
225 QPointF QLegend::offset() const
218 {
226 {
219 return QPointF(d_ptr->m_offsetX,d_ptr->m_offsetY);
227 return QPointF(d_ptr->m_offsetX,d_ptr->m_offsetY);
@@ -385,12 +385,18 bool QChart::isBackgroundVisible() const
385 return d_ptr->m_presenter->m_backgroundItem->isVisible();
385 return d_ptr->m_presenter->m_backgroundItem->isVisible();
386 }
386 }
387
387
388 /*!
389 Sets the background drop shadow effect state to \a enabled.
390 */
388 void QChart::setBackgroundDropShadowEnabled(bool enabled)
391 void QChart::setBackgroundDropShadowEnabled(bool enabled)
389 {
392 {
390 d_ptr->m_presenter->createChartBackgroundItem();
393 d_ptr->m_presenter->createChartBackgroundItem();
391 d_ptr->m_presenter->m_backgroundItem->setDropShadowEnabled(enabled);
394 d_ptr->m_presenter->m_backgroundItem->setDropShadowEnabled(enabled);
392 }
395 }
393
396
397 /*!
398 Returns true if the drop shadow effect is enabled for the chart background.
399 */
394 bool QChart::isBackgroundDropShadowEnabled() const
400 bool QChart::isBackgroundDropShadowEnabled() const
395 {
401 {
396 if (!d_ptr->m_presenter->m_backgroundItem)
402 if (!d_ptr->m_presenter->m_backgroundItem)
@@ -50,7 +50,7
50 QTCOMMERCIALCHART_BEGIN_NAMESPACE
50 QTCOMMERCIALCHART_BEGIN_NAMESPACE
51
51
52 /*!
52 /*!
53 Constructs a chartView object which is a child of a\a parent.
53 Constructs a chartView object with parent \a parent to display a \a chart.
54 */
54 */
55 QChartView::QChartView(QChart *chart,QWidget *parent) :
55 QChartView::QChartView(QChart *chart,QWidget *parent) :
56 QGraphicsView(parent),
56 QGraphicsView(parent),
@@ -78,12 +78,10 QPointF QSplineSeries::controlPoint(int index) const
78 }
78 }
79
79
80 /*!
80 /*!
81 \fn bool QSplineSeries::setModelMappingRange(int first, int count)
81 Sets the \a modelX to be used as a data source for x coordinate and \a modelY to be used
82 Allows limiting the model mapping.
82 as a data source for y coordinate. The \a orientation parameter specifies whether the data
83 Parameter \a first specifies which element of the model should be used as a first one of the series.
83 is in columns or in rows.
84 Parameter \a count specifies how many elements should be mapped. If count is not specified (defaults to -1)
84 \sa setModel()
85 then all the items following \a first item in a model are used.
86 \sa setModel(), setModelMapping()
87 */
85 */
88 void QSplineSeries::setModelMapping(int modelX, int modelY, Qt::Orientation orientation)
86 void QSplineSeries::setModelMapping(int modelX, int modelY, Qt::Orientation orientation)
89 {
87 {
@@ -400,7 +400,6 bool QXYSeries::setModel(QAbstractItemModel *model)
400 }
400 }
401
401
402 /*!
402 /*!
403 \fn bool QXYSeries::setModelMapping(int modelX, int modelY, Qt::Orientation orientation)
404 Sets the \a modelX to be used as a data source for x coordinate and \a modelY to be used
403 Sets the \a modelX to be used as a data source for x coordinate and \a modelY to be used
405 as a data source for y coordinate. The \a orientation parameter specifies whether the data
404 as a data source for y coordinate. The \a orientation parameter specifies whether the data
406 is in columns or in rows.
405 is in columns or in rows.
General Comments 0
You need to be logged in to leave comments. Login now