]> Git trees. - libqmvoc.git/commitdiff
API change:
authorPino Toscano <pino@kde.org>
Sat, 17 Feb 2007 15:57:09 +0000 (15:57 +0000)
committerPino Toscano <pino@kde.org>
Sat, 17 Feb 2007 15:57:09 +0000 (15:57 +0000)
remove label()/setLabel(), use directly the points as returned by points()

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634561

kdeeduplot/kplotobject.cpp
kdeeduplot/kplotobject.h

index f612bc627a50444e5c38f01d5a8181f65f871198..5426dd9be64c81a7eee107e6e13b06ad08a39e3a 100644 (file)
@@ -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;
index 972bf9e94b0611e0cae0ad88600d8528283de17b..931949492719a20c8fff3f72e24799d27347a941 100644 (file)
@@ -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
          */