[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Jan 21 07:58:57 CET 2005


CVS commit by staikos: 

this should have been seconds, not milliseconds, which cannot be represented
with int in realistic cases.


  M +2 -2      kstdatasource.cpp   1.50
  M +2 -2      kstdatasource.h   1.31
  M +2 -1      datasources/planck/planck.cpp   1.33
  M +1 -1      datasources/planck/planck.h   1.13


--- kdeextragear-2/kst/kst/kstdatasource.cpp  #1.49:1.50
@@ -569,6 +569,6 @@ int KstDataSource::sampleForTime(const Q
 
 
-int KstDataSource::sampleForTime(int milliseconds, bool *ok) {
-  Q_UNUSED(milliseconds)
+int KstDataSource::sampleForTime(int seconds, bool *ok) {
+  Q_UNUSED(seconds)
   if (ok) {
     *ok = false;

--- kdeextragear-2/kst/kst/kstdatasource.h  #1.30:1.31
@@ -136,9 +136,9 @@ class KstDataSource : public KstObject {
     virtual int sampleForTime(const QDateTime& time, bool *ok = 0L);
 
-    virtual int sampleForTime(int milliseconds, bool *ok = 0L);
+    virtual int sampleForTime(int seconds, bool *ok = 0L);
 
     virtual QDateTime timeForSample(int sample, bool *ok = 0L);
 
-    // in (ms)
+    // in (s)
     virtual int relativeTimeForSample(int sample, bool *ok = 0L);
 

--- kdeextragear-2/kst/kst/datasources/planck/planck.cpp  #1.32:1.33
@@ -238,5 +238,6 @@ int PlanckSource::sampleForTime(const QD
 
 
-int PlanckSource::sampleForTime(int milliseconds, bool *ok) {
+int PlanckSource::sampleForTime(int seconds, bool *ok) {
+
 }
 

--- kdeextragear-2/kst/kst/datasources/planck/planck.h  #1.12:1.13
@@ -52,5 +52,5 @@ class PlanckSource : public KstDataSourc
     virtual int sampleForTime(const QDateTime& time, bool *ok = 0L);
 
-    virtual int sampleForTime(int milliseconds, bool *ok = 0L);
+    virtual int sampleForTime(int seconds, bool *ok = 0L);
 
     virtual QDateTime timeForSample(int sample, bool *ok = 0L);




More information about the Kst mailing list