[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Jul 11 20:09:42 CEST 2003


CVS commit by staikos: 

cleanup some unused stuff


  M +7 -10     kstdatamanager_i.cpp   1.23
  M +0 -2      kstdatamanager_i.h   1.8


--- kdeextragear-2/kst/kst/kstdatamanager_i.cpp  #1.22:1.23
@@ -53,5 +53,5 @@ class KstObjectItem : public QListViewIt
       setText(2, QString::number(x->getUsage() - 2)); // we have a ptr
       setText(3, QString::number(x->sampleCount()));
-      setText(4, QString("%3: %4 [%1..%2]").arg(x->reqStartFrame())
+      setText(4, i18n("%3: %4 [%1..%2]").arg(x->reqStartFrame())
                                            .arg(x->reqStartFrame() + x->reqNumFrames())
                                            .arg(x->getFilename())
@@ -66,5 +66,5 @@ class KstObjectItem : public QListViewIt
       setText(2, QString::number(x->getUsage() - 1)); // parent also points
       setText(3, QString::number(x->sampleCount()));
-      setText(4, QString("[%1..%2]").arg(x->min()).arg(x->max()));
+      setText(4, i18n("[%1..%2]").arg(x->min()).arg(x->max()));
     }
 
@@ -82,5 +82,5 @@ class KstObjectItem : public QListViewIt
     }
 
-    ~KstObjectItem() {
+    virtual ~KstObjectItem() {
     }
 
@@ -140,7 +140,4 @@ KstDataManagerI::KstDataManagerI(KstDoc 
     connect(NewVector, SIGNAL(clicked()),
             KstVectorDialogI::globalInstance(), SLOT(show_New()));
-
-    /* make internationalized labels */
-    DataVectorStr = i18n("Data Vector");
 }
 
@@ -182,5 +179,5 @@ void KstDataManagerI::edit_I() {
   }
 
-  if (qi->text(1) == DataVectorStr) {
+  if (qi->rtti() == RTTI_OBJ_DATA_VECTOR) {
     emit editDataVector(qi->text(0));
   }

--- kdeextragear-2/kst/kst/kstdatamanager_i.h  #1.7:1.8
@@ -40,6 +40,4 @@ public slots:
 private:
   KstDoc *doc;
-  QString DataVectorStr;
-  QString SlaveStr;
 signals:
   void editDataVector(const QString &);




More information about the Kst mailing list