]> Git trees. - libqmvoc.git/commitdiff
* some minor codecleanups
authorCarsten Niehaus <cniehaus@gmx.de>
Tue, 26 Jul 2005 16:42:30 +0000 (16:42 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Tue, 26 Jul 2005 16:42:30 +0000 (16:42 +0000)
* some API-fixes
* some tooltips/qwhatsthis

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

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

index 64e2606503b9a49485ee27d7e12a14da73995073..474b48edf95a9bdefb8096f90e49bf49444c67b4 100644 (file)
@@ -54,7 +54,7 @@ double Spectrum::maxBand()
 
 Spectrum* Spectrum::adjustToWavelength( double min, double max )
 {
-       Spectrum *spec = new Spectrum( m_parentElement );
+       Spectrum *spec = new Spectrum();
 
        QValueList<band>::const_iterator it = m_bandlist.begin();
        const QValueList<band>::const_iterator itEnd = m_bandlist.end();
index 16d1502abe8db98e6e64972cc10aca2ee971d25c..32c58907f75282f0fd535df0969cc680d6a67090 100644 (file)
@@ -35,14 +35,6 @@ class Element;
 class Spectrum
 {
        public:
-               /**
-                * public costructor
-                * @param parent the Element this spectrum belongs to
-                */
-               Spectrum( Element* parent ){
-                       m_parentElement = parent;
-               };
-
                /**
                 * This spectrum doesn't belong to any element
                 */
@@ -129,6 +121,9 @@ class Spectrum
                        return m_max;
                }
 
+               /**
+                * @return the list of bands of the spectrum
+                */
                QValueList<band>* bandlist(){
                        return &m_bandlist;
                }