]> Git trees. - libqmvoc.git/commitdiff
* add a icon, now it only needs to look good.
authorCarsten Niehaus <cniehaus@gmx.de>
Wed, 13 Jul 2005 16:36:01 +0000 (16:36 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Wed, 13 Jul 2005 16:36:01 +0000 (16:36 +0000)
* make the spectrum-stuff really work

svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=434304

kalzium/src/element.cpp
kalzium/src/spectrum.h

index b3e418e22b962a9ddb2175a41aee120c7321c32b..f308944478a2aa2bb19484e18681d8e1be5c54c8 100644 (file)
@@ -641,7 +641,6 @@ EList KalziumDataObject::readData(  QDomDocument &dataDocument )
                {
                        QDomElement spec = spectrumList.item( i ).toElement();
                        double wavelenght = spec.text().toDouble();
-                       kdDebug() << "double ist: " << wavelenght  << " Length: " << spectrumList.length() << endl;
                        speclist.append( wavelenght );
                }
        
index 1a24a746c54f1566c267b9cc42aa41a58183361d..2048a722ffcf6fbb8c878ac98a3dd377aaafb8ae 100644 (file)
@@ -49,10 +49,21 @@ class SpectrumWidget : public QWidget
        private:
                QValueList<double> m_spectra;
 
-               QImage ref_image;
-
+               /**
+                * @return the adjusted value of the @p color. The
+                * correction depends on @p factor which has been
+                * figured out emperically
+                */
                int Adjust( double color, double factor );
 
+               /**
+                * This method changes the three values @p r @p g and @p b to the 
+                * correct values
+                * param wavelength the wavelength for which the color is searched
+                * param r red
+                * param g green 
+                * param b blue
+                */
                void wavelengthToRGB( double wavelength, int& r, int& g, int& b );
 
                double Gamma;