##// END OF EJS Templates
minor. axis grey to lightGrey
minor. axis grey to lightGrey

File last commit:

r186:a60a21158b5a
r187:75f1a3de7c19
Show More
qlinechartseries.cpp
75 lines | 1.2 KiB | text/x-c | CppLexer
/ src / linechart / qlinechartseries.cpp
Michal Klocek
Fix naming convention for lineseries...
r144 #include "qlinechartseries.h"
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Add pointsVisible setting for line series
r185 QLineChartSeries::QLineChartSeries(QObject* parent):QChartSeries(parent),
m_pointsVisible(false)
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
}
Michal Klocek
Fix naming convention for lineseries...
r144 QLineChartSeries::~QLineChartSeries()
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
}
Michal Klocek
Fix naming convention for lineseries...
r144 int QLineChartSeries::add(qreal x,qreal y)
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
m_x<<x;
m_y<<y;
Michal Klocek
Refactors qchart , adds line animation...
r131 return m_x.size()-1;
}
Michal Klocek
Fix naming convention for lineseries...
r144 void QLineChartSeries::set(int index,qreal x,qreal y)
Michal Klocek
Refactors qchart , adds line animation...
r131 {
m_x[index]=x;
m_y[index]=y;
emit changed(index);
Michal Klocek
Refactor current draft to fit int current design specs...
r21 }
Michal Klocek
Fix naming convention for lineseries...
r144 void QLineChartSeries::clear()
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
m_x.clear();
m_y.clear();
}
Michal Klocek
Fix naming convention for lineseries...
r144 qreal QLineChartSeries::x(int pos) const
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
return m_x.at(pos);
}
Michal Klocek
Fix naming convention for lineseries...
r144 qreal QLineChartSeries::y(int pos) const
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
return m_y.at(pos);
}
Michal Klocek
Fix naming convention for lineseries...
r144 int QLineChartSeries::count() const
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
Q_ASSERT(m_x.size() == m_y.size());
return m_x.size();
}
Michal Klocek
Fix naming convention for lineseries...
r144 void QLineChartSeries::setPen(const QPen& pen)
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 {
m_pen=pen;
}
Michal Klocek
Fix naming convention for lineseries...
r144 QDebug operator<< (QDebug debug, const QLineChartSeries series)
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
Q_ASSERT(series.m_x.size() == series.m_y.size());
int size = series.m_x.size();
for (int i=0;i<size;i++) {
debug.nospace() << "(" << series.m_x.at(i) << ','<< series.m_y.at(i) << ") ";
}
return debug.space();
}
Michal Klocek
minor. missing setter for line series
r186 void QLineChartSeries::setPointsVisible(bool visible)
{
m_pointsVisible=visible;
}
Michal Klocek
Fix naming convention for lineseries...
r144 #include "moc_qlinechartseries.cpp"
Michal Klocek
Refactors qchart , adds line animation...
r131
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE