From: Carsten Niehaus Date: Wed, 20 Jul 2005 11:36:21 +0000 (+0000) Subject: make the tooltips work, with RMB currently X-Git-Tag: v3.80.2~300^2~38 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=8280674dcf897e1f280092562a3c10e1849e1166;p=libqmvoc.git make the tooltips work, with RMB currently svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.cpp; revision=436853 --- diff --git a/kalzium/src/spectrum.cpp b/kalzium/src/spectrum.cpp index 9583f18..ea4fbcc 100644 --- a/kalzium/src/spectrum.cpp +++ b/kalzium/src/spectrum.cpp @@ -45,14 +45,11 @@ double Spectrum::minBand() double Spectrum::maxBand() { - kdDebug() << "Spectrum::maxBand()" << endl; - double value = ( *m_bandlist.begin() ).wavelength; QValueList::const_iterator it = m_bandlist.begin(); const QValueList::const_iterator itEnd = m_bandlist.end(); for (;it!=itEnd;++it) { - kdDebug() << "value: " << ( *it ).wavelength << " Current max-value: " << value << endl; if ( value < ( *it ).wavelength ) value = ( *it ).wavelength; } @@ -69,7 +66,6 @@ Spectrum* Spectrum::adjustToWavelength( double min, double max ) for ( ; it != itEnd; ++it ) { - kdDebug( ) << "WL: " << ( *it ).wavelength << endl; if ( ( *it ).wavelength < min || ( *it ).wavelength > max ) continue; @@ -83,8 +79,6 @@ Spectrum* Spectrum::adjustToWavelength( double min, double max ) void Spectrum::adjustIntensities() { - kdDebug() << "Spectrum::adjustIntensities()" << endl; - int maxInt = 0; QValueList::Iterator it = m_bandlist.begin(); const QValueList::Iterator itEnd = m_bandlist.end(); @@ -96,8 +90,6 @@ void Spectrum::adjustIntensities() maxInt = ( *it ).intensity; } - kdDebug() << "maxInt" << maxInt << endl; - //check if an adjustment is needed or not if ( maxInt == 1000 ) return;