svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=476014
* *
***************************************************************************/
-#include <qpainter.h>
-#include <kdebug.h>
-#include <klocale.h>
#include "kplotobject.h"
+#include <kdebug.h>
+
KPlotObject::KPlotObject() {
KPlotObject( "", Qt::white, POINTS );
}
}
void KPlotObject::removePoint( int index ) {
- if ( ( index < 1 ) || ( index > pList.count() - 1 ) ) {
+ if ( ( index < 0 ) || ( index >= pList.count() ) ) {
kdWarning() << "Ignoring attempt to remove non-existent plot object" << endl;
return;
}
#ifndef KPLOTOBJECT_H
#define KPLOTOBJECT_H
-class QPainter;
-
+#include <QColor>
#include <QPointF>
#include <QRectF>
#include <QString>
* *
***************************************************************************/
-#ifndef _KPLOTWIDGET_H_
-#define _KPLOTWIDGET_H_
+#ifndef KPLOTWIDGET_H
+#define KPLOTWIDGET_H
#include <qcolor.h>
#include <qrect.h>