From 884c5d003dba1551854b52cc6306b823d3084613 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Tue, 19 Jul 2005 08:11:12 +0000 Subject: [PATCH] only show a spectrum if there is actually one svn path=/trunk/KDE/kdeedu/kalzium/src/element.h; revision=436175 --- kalzium/src/element.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; -- 2.47.3