[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Apr 15 20:32:34 CEST 2004


CVS commit by staikos: 

ah now I understand, you didn't want orphans, you just wanted them to not be
saved


  M +20 -19    kstdoc.cpp   1.68


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.67:1.68
@@ -635,23 +635,24 @@ bool KstDoc::event(QEvent *e) {
 
 void KstDoc::createScalars() const {
-  new KstScalar(i18n("CONST_MKSA_SPEED_OF_LIGHT"), 2.99792458e8 , true);
-  new KstScalar(i18n("CONST_MKSA_GRAVITATIONAL_CONSTANT"), 6.673e-11, true);
-  new KstScalar(i18n("CONST_MKSA_PLANCKS_CONSTANT_H"), 6.62606876e-34, true);
-  new KstScalar(i18n("CONST_MKSA_PLANCKS_CONSTANT_HBAR"), 1.05457159642e-34, true);
-  new KstScalar(i18n("CONST_MKSA_ASTRONOMICAL_UNIT"), 1.49597870691e11, true); 
-  new KstScalar(i18n("CONST_MKSA_VACUUM_PERMITTIVITY"), 8.854187817e-12, true);
-  new KstScalar(i18n("CONST_MKSA_VACUUM_PERMEABILITY"), 1.25663706144e-6, true);
-  new KstScalar(i18n("CONST_MKSA_GRAV_ACCEL"), 9.80665e0, true);
-  new KstScalar(i18n("CONST_MKSA_MASS_MUON"), 1.88353109e-28, true); 
-  new KstScalar(i18n("CONST_MKSA_MASS_PROTON"), 1.67262158e-27, true); 
-  new KstScalar(i18n("CONST_MKSA_MASS_NEUTRON"), 1.67492716e-27, true); 
-  new KstScalar(i18n("CONST_MKSA_RYDBERG"), 2.17987190389e-18, true);
-  new KstScalar(i18n("CONST_MKSA_BOLTZMANN"), 1.3806503e-23, true);
-  new KstScalar(i18n("CONST_MKSA_SOLAR_MASS"), 1.98892e30, true);
-  new KstScalar(i18n("CONST_MKSA_BOHR_RADIUS"), 5.291772083e-11, true);
-  new KstScalar(i18n("CONST_MKSA_ELECTRON_CHARGE"), 1.602176462e-19, true);
-  new KstScalar(i18n("CONST_MKSA_MOLAR_GAS"), 8.314472e0, true);
-  new KstScalar(i18n("CONST_MKSA_STANDARD_GAS_VOLUME"), 2.2710981e-2, true);
-  new KstScalar(i18n("CONST_PI"), 3.141592654e0, true); 
+  // Should not be orphans, just unparented so they are not saved
+  new KstScalar(i18n("CONST_MKSA_SPEED_OF_LIGHT"), 2.99792458e8 , false);
+  new KstScalar(i18n("CONST_MKSA_GRAVITATIONAL_CONSTANT"), 6.673e-11, false);
+  new KstScalar(i18n("CONST_MKSA_PLANCKS_CONSTANT_H"), 6.62606876e-34, false);
+  new KstScalar(i18n("CONST_MKSA_PLANCKS_CONSTANT_HBAR"), 1.05457159642e-34, false);
+  new KstScalar(i18n("CONST_MKSA_ASTRONOMICAL_UNIT"), 1.49597870691e11, false); 
+  new KstScalar(i18n("CONST_MKSA_VACUUM_PERMITTIVITY"), 8.854187817e-12, false);
+  new KstScalar(i18n("CONST_MKSA_VACUUM_PERMEABILITY"), 1.25663706144e-6, false);
+  new KstScalar(i18n("CONST_MKSA_GRAV_ACCEL"), 9.80665e0, false);
+  new KstScalar(i18n("CONST_MKSA_MASS_MUON"), 1.88353109e-28, false); 
+  new KstScalar(i18n("CONST_MKSA_MASS_PROTON"), 1.67262158e-27, false); 
+  new KstScalar(i18n("CONST_MKSA_MASS_NEUTRON"), 1.67492716e-27, false); 
+  new KstScalar(i18n("CONST_MKSA_RYDBERG"), 2.17987190389e-18, false);
+  new KstScalar(i18n("CONST_MKSA_BOLTZMANN"), 1.3806503e-23, false);
+  new KstScalar(i18n("CONST_MKSA_SOLAR_MASS"), 1.98892e30, false);
+  new KstScalar(i18n("CONST_MKSA_BOHR_RADIUS"), 5.291772083e-11, false);
+  new KstScalar(i18n("CONST_MKSA_ELECTRON_CHARGE"), 1.602176462e-19, false);
+  new KstScalar(i18n("CONST_MKSA_MOLAR_GAS"), 8.314472e0, false);
+  new KstScalar(i18n("CONST_MKSA_STANDARD_GAS_VOLUME"), 2.2710981e-2, false);
+  new KstScalar(i18n("CONST_PI"), 3.141592654e0, false); 
 }
 





More information about the Kst mailing list