[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kchart/kdchart
From: Sebastian Sauer <mail () dipe ! org>
Date: 2006-12-06 20:33:04
Message-ID: 1165437184.549312.16541.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 611120 by sebsauer:
warnings--
M +1 -0 KDChartBaseSeries.h
M +1 -1 KDChartLinesPainter.cpp
M +1 -1 KDChartParams_io.cpp
M +2 -2 KDChartPolarPainter.cpp
--- trunk/koffice/kchart/kdchart/KDChartBaseSeries.h #611119:611120
@@ -45,6 +45,7 @@
class KDCHART_EXPORT KDChartBaseSeries
{
public:
+ virtual ~KDChartBaseSeries() {}
virtual uint rows() const = 0;
virtual const KDChartData& cell( uint row ) const = 0;
virtual void setCell( uint row, const KDChartData& element) = 0;
--- trunk/koffice/kchart/kdchart/KDChartLinesPainter.cpp #611119:611120
@@ -682,7 +682,7 @@
// append the previous array (there is guaranteed to be
// one because we are at least the second time through
// here) in reverse order
- for ( unsigned int i = 0; i < previousPoints.size(); ++i ) {
+ for ( int i = 0; i < previousPoints.size(); ++i ) {
thisSection.setPoint( point + i,
previousPoints.point( previousPoints.size() - i - 1 ) );
//qDebug("\nx: %i",previousPoints.point( previousPoints.size() - i - 1 ).x());
--- trunk/koffice/kchart/kdchart/KDChartParams_io.cpp #611119:611120
@@ -1043,7 +1043,7 @@
{
QDomDocument doc( "ChartParams" );
// would be nicer if QDomDocument could read from a QTextStream...
- QString docString = s.read();
+ QString docString = s.readAll();
doc.setContent( docString );
p.loadXML( doc );
--- trunk/koffice/kchart/kdchart/KDChartPolarPainter.cpp #611119:611120
@@ -510,9 +510,9 @@
int r2 = static_cast < int > ( radius * 1100 / 1000 );
int r3 = static_cast < int > ( radius * 1175 / 1000 );
QPoint pt1, pt2, pt3;
- uint nLabels = labelTexts ? labelTexts->count() : 0;
+ int nLabels = labelTexts ? labelTexts->count() : 0;
int angleBetweenRays = 360 / nLabels;
- for( uint value = 0; value < nLabels; ++value ) {
+ for( int value = 0; value < nLabels; ++value ) {
pt1 = center + polarToXY( r1, currentAngle );
pt2 = center + polarToXY( r2, currentAngle );
pt3 = center + polarToXY( r3, currentAngle );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic