From: Carsten Niehaus Date: Wed, 13 Jul 2005 16:36:01 +0000 (+0000) Subject: * add a icon, now it only needs to look good. X-Git-Tag: v3.80.2~300^2~82 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=766144db8d45e27e33fdc4199bc4cda5f01a0c0b;p=libqmvoc.git * add a icon, now it only needs to look good. * make the spectrum-stuff really work svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=434304 --- diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index b3e418e..f308944 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -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 ); } diff --git a/kalzium/src/spectrum.h b/kalzium/src/spectrum.h index 1a24a74..2048a72 100644 --- a/kalzium/src/spectrum.h +++ b/kalzium/src/spectrum.h @@ -49,10 +49,21 @@ class SpectrumWidget : public QWidget private: QValueList 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;