From ef933d4c75dba1416ca0d5aa67f6b31b8abb6d19 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Tue, 26 Jul 2005 16:42:30 +0000 Subject: [PATCH] * some minor codecleanups * some API-fixes * some tooltips/qwhatsthis svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=438943 --- kalzium/src/spectrum.cpp | 2 +- kalzium/src/spectrum.h | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/kalzium/src/spectrum.cpp b/kalzium/src/spectrum.cpp index 64e2606..474b48e 100644 --- a/kalzium/src/spectrum.cpp +++ b/kalzium/src/spectrum.cpp @@ -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::const_iterator it = m_bandlist.begin(); const QValueList::const_iterator itEnd = m_bandlist.end(); diff --git a/kalzium/src/spectrum.h b/kalzium/src/spectrum.h index 16d1502..32c5890 100644 --- a/kalzium/src/spectrum.h +++ b/kalzium/src/spectrum.h @@ -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* bandlist(){ return &m_bandlist; } -- 2.47.3