From: Carsten Niehaus Date: Tue, 19 Jul 2005 08:11:12 +0000 (+0000) Subject: only show a spectrum if there is actually one X-Git-Tag: v3.80.2~300^2~47 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=884c5d003dba1551854b52cc6306b823d3084613;p=libqmvoc.git only show a spectrum if there is actually one svn path=/trunk/KDE/kdeedu/kalzium/src/element.h; revision=436175 --- diff --git a/kalzium/src/element.h b/kalzium/src/element.h index 46c6d96..c40578c 100644 --- a/kalzium/src/element.h +++ b/kalzium/src/element.h @@ -137,8 +137,15 @@ class Element{ m_spectrum = spec; } + /** + * @return if the element has information about spectra + */ bool hasSpectrum() const{ - return m_spectrum; + return m_hasSpectrum; + } + + void setHasSepctrum(bool value){ + m_hasSpectrum = value; } Spectrum* spectrum() const{ @@ -383,6 +390,8 @@ class Element{ Spectrum *m_spectrum; + bool m_hasSpectrum; + QValueList m_isotopeList; QValueList m_spectrumList;