[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Nov 11 01:27:21 CET 2005


SVN commit 479604 by staikos:

the double version compiles better :)


 M  +10 -10    timedefinitions.h  


--- trunk/extragear/graphics/kst/kst/timedefinitions.h #479603:479604
@@ -25,20 +25,20 @@
 struct KstTimeDef {
   const char *name;
   const char *description;
-  long factor;
+  double factor;
 };
 
 namespace KST {
 KstTimeDef timeDefinitions[] = {
-  { I18N_NOOP("frames"), "frames", 1 },
-  { I18N_NOOP("ms"), "milliseconds", 1 },
-  { I18N_NOOP("s"), "seconds", 1000 },
-  { I18N_NOOP("m"), "minutes", 60000 },
-  { I18N_NOOP("h"), "hours", 3600000 },
-  { I18N_NOOP("days"), "days", 86400000 },
-  { I18N_NOOP("weeks"), "weeks", 604800000 },
-  { I18N_NOOP("months"), "months", 2628000000 }, // 1/12 of a year
-  { I18N_NOOP("years"), "years", 31536000000 },  // 365 days
+  { I18N_NOOP("frames"), "frames", 1.0 },
+  { I18N_NOOP("ms"), "milliseconds", 1.0 },
+  { I18N_NOOP("s"), "seconds", 1000.0 },
+  { I18N_NOOP("m"), "minutes", 60000.0 },
+  { I18N_NOOP("h"), "hours", 3600000.0 },
+  { I18N_NOOP("days"), "days", 86400000.0 },
+  { I18N_NOOP("weeks"), "weeks", 604800000.0 },
+  { I18N_NOOP("months"), "months", 2628000000.0 }, // 1/12 of a year
+  { I18N_NOOP("years"), "years", 31536000000.0 },  // 365 days
   { 0, 0, 0 }
 };
 }


More information about the Kst mailing list