From e5b6482225c6725e7239838d158a345d67afa729 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 17 Feb 2007 15:57:09 +0000 Subject: [PATCH] API change: remove label()/setLabel(), use directly the points as returned by points() svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634561 --- kdeeduplot/kplotobject.cpp | 16 ---------------- kdeeduplot/kplotobject.h | 13 ------------- 2 files changed, 29 deletions(-) diff --git a/kdeeduplot/kplotobject.cpp b/kdeeduplot/kplotobject.cpp index f612bc6..5426dd9 100644 --- a/kdeeduplot/kplotobject.cpp +++ b/kdeeduplot/kplotobject.cpp @@ -155,22 +155,6 @@ KPlotObject::~KPlotObject() delete d; } -QString KPlotObject::label( int i ) const -{ - if ( i < 0 || i >= d->pList.count() ) - return QString(); - - return d->pList.at( i )->label(); -} - -void KPlotObject::setLabel( int i, const QString &n ) -{ - if ( i < 0 || i >= d->pList.count() ) - return; - - d->pList.at(i)->setLabel( n ); -} - KPlotObject::PlotTypes KPlotObject::plotTypes() const { return d->type; diff --git a/kdeeduplot/kplotobject.h b/kdeeduplot/kplotobject.h index 972bf9e..9319494 100644 --- a/kdeeduplot/kplotobject.h +++ b/kdeeduplot/kplotobject.h @@ -190,19 +190,6 @@ public: */ ~KPlotObject(); - /** - * @return the label of point i - * @param i the index of the point - */ - QString label( int i ) const; - - /** - * Set the label text for point i - * @param i the index of the point - * @param n the new name - */ - void setLabel( int i, const QString &n ); - /** * @return the plot flags of the object */ -- 2.47.3