##// END OF EJS Templates
Puts back header parser
Puts back header parser

File last commit:

r574:5a19c3a8f92b
r624:b49208bacda3
Show More
qscatterseries.cpp
98 lines | 2.0 KiB | text/x-c | CppLexer
Tero Ahola
Integrated scatter type series...
r42 #include "qscatterseries.h"
#include "qchart.h"
Tero Ahola
Scatter series documentation; now uses snippets
r300 /*!
\class QScatterSeries
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \brief The QScatterSeries class is used for making scatter charts.
Tero Ahola
Integrated scatter type series...
r42
Tero Ahola
Scatter series documentation; now uses snippets
r300 \mainclass
Michal Klocek
Fixes for docs , adds xyseries docs
r481 The scatter data is displayed as a collection of points on the chart. Each point determines the position on the horizontal axis
and the vertical axis.
Tero Ahola
Scatter series documentation; now uses snippets
r300
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \image scatterchart.png
Tero Ahola
Scatter series documentation; now uses snippets
r300
Michal Klocek
Fixes for docs , adds xyseries docs
r481 Creating basic scatter chart is simple:
\code
QScatterSeries* series = new QScatterSeries();
series->add(0, 6);
series->add(2, 4);
...
chartView->addSeries(series);
\endcode
Tero Ahola
Scatter series documentation; now uses snippets
r300 */
Tero Ahola
Integrated scatter type series...
r42
Tero Ahola
Documenting QScatterSeries
r261 /*!
\enum QScatterSeries::MarkerShape
This enum describes the shape used when rendering marker items.
\value MarkerShapeCircle
Michal Klocek
Adds missing scatter intercation implementation...
r541 \value MarkerShapeRectangle
Tero Ahola
Documenting QScatterSeries
r261 */
Tero Ahola
QDoc to use style sheets...
r260 /*!
Tero Ahola
Scatter series documentation; now uses snippets
r300 \fn QChartSeriesType QScatterSeries::type() const
\brief Returns QChartSeries::SeriesTypeScatter.
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \sa QSeries, QSeriesType
Tero Ahola
Scatter series documentation; now uses snippets
r300 */
Tero Ahola
QDoc to use style sheets...
r260
Tero Ahola
Scatter series documentation; now uses snippets
r300 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Tero Ahola
Documenting QScatterSeries
r261 /*!
Constructs a series object which is a child of \a parent.
*/
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeries::QScatterSeries(QObject *parent) :
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 QXYSeries(parent),
Michal Klocek
Adds missing scatter intercation implementation...
r541 m_shape(QScatterSeries::MarkerShapeCircle),
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 m_size(9.0)
Tero Ahola
Integrated scatter type series...
r42 {
}
Tero Ahola
QDoc to use style sheets...
r260 /*!
Tero Ahola
Documenting QScatterSeries
r261 Destroys the object. Note that adding series to QChart transfers the ownership to the chart.
Tero Ahola
QDoc to use style sheets...
r260 */
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeries::~QScatterSeries()
Tero Ahola
Integrated scatter type series...
r42 {
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 }
Tero Ahola
Documenting QScatterSeries
r261 /*!
Tero Ahola
Scatter API review: changed signal now private etc.
r459 Returns the shape used for drawing markers.
Tero Ahola
Documenting QScatterSeries
r261 */
Tero Ahola
Scatter API review: changed signal now private etc.
r459 QScatterSeries::MarkerShape QScatterSeries::shape() const
Tero Ahola
Scatter series marker visuals
r195 {
Michal Klocek
minor. cleanuup in scatter API
r573 return m_shape;
Tero Ahola
Scatter series marker visuals
r195 }
Tero Ahola
Documenting QScatterSeries
r261 /*!
Tero Ahola
Scatter series documentation; now uses snippets
r300 Overrides the default shape of the marker items with a user defined \a shape. The default shape
is defined by chart theme setting.
Tero Ahola
Documenting QScatterSeries
r261 */
Tero Ahola
Fixing review findings in QScatterSeries
r358 void QScatterSeries::setShape(MarkerShape shape)
Tero Ahola
Scatter series marker visuals
r195 {
Michal Klocek
minor. cleanuup in scatter API
r573 if(m_shape!= shape){
m_shape=shape;
emit QXYSeries::updated();
}
Tero Ahola
Scatter series marker visuals
r195 }
Tero Ahola
Added size customization to QScatterSeries
r397 /*!
Returns the size of the marker items.
*/
Tero Ahola
Scatter API review: changed signal now private etc.
r459 qreal QScatterSeries::size() const
Tero Ahola
Added size customization to QScatterSeries
r397 {
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 return m_size;
Tero Ahola
Added size customization to QScatterSeries
r397 }
/*!
Set the \a size of the marker items. The default size is 9.0.
*/
void QScatterSeries::setSize(qreal size)
{
Michal Klocek
minor. cleanuup in scatter API
r573 if(m_size != size){
m_size=size;
emit updated();
}
Tero Ahola
Added size customization to QScatterSeries
r397 }
Tero Ahola
Integrated scatter type series...
r42 QTCOMMERCIALCHART_END_NAMESPACE