From: Carsten Niehaus Date: Sun, 24 Sep 2006 16:26:18 +0000 (+0000) Subject: * Adding a better ctor so that I can finally rewrite the specturm-widget X-Git-Tag: v3.80.2~20 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=17cecc2bbe2251197474a7bd1eb8a5fc3d902906;p=libqmvoc.git * Adding a better ctor so that I can finally rewrite the specturm-widget svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=587991 --- diff --git a/libscience/element.h b/libscience/element.h index 6397c4c..19e4f4c 100644 --- a/libscience/element.h +++ b/libscience/element.h @@ -76,6 +76,10 @@ class EDUSCIENCE_EXPORT Element return dataList; } + void setSpectrum( Spectrum * spec ){ + m_spectrum = spec; + } + Spectrum * spectrum() const{ return m_spectrum; } diff --git a/libscience/spectrum.h b/libscience/spectrum.h index bdd4420..a5ecc1f 100644 --- a/libscience/spectrum.h +++ b/libscience/spectrum.h @@ -57,6 +57,11 @@ class EDUSCIENCE_EXPORT Spectrum intensity = -1; } + peak(double wl, int in ){ + wavelength = wl; + intensity = in; + } + ///in nm double wavelength; @@ -118,10 +123,6 @@ class EDUSCIENCE_EXPORT Spectrum QList peaklist(){ return m_peaklist; } - - QList peakList(){ - return peaklist(); - } /** * cache the values of the biggest and