From: Carsten Niehaus Date: Sun, 19 Feb 2006 17:05:38 +0000 (+0000) Subject: Pinotree, please look at the patch to isotopes.xml. That is really a good one! X-Git-Tag: v3.80.2~168 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=6b27d0059fe43c4cdd624825ea2f85bf266c82ee;p=libqmvoc.git Pinotree, please look at the patch to isotopes.xml. That is really a good one! svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=511365 --- diff --git a/libscience/data/isotopes.xml b/libscience/data/isotopes.xml index e8f6b27..90955f3 100644 --- a/libscience/data/isotopes.xml +++ b/libscience/data/isotopes.xml @@ -1,3 +1,4 @@ + 1.007825032 @@ -14150,3 +14151,4 @@ 115 + diff --git a/libscience/isotopeparser.cpp b/libscience/isotopeparser.cpp index 286a3d1..e0c043f 100644 --- a/libscience/isotopeparser.cpp +++ b/libscience/isotopeparser.cpp @@ -83,10 +83,10 @@ IsotopeParser::~IsotopeParser() bool IsotopeParser::startElement(const QString&, const QString &localName, const QString&, const QXmlAttributes &attrs) { - kDebug() << "IsotopeParser::startElement(), localName " << localName << endl; +//X kDebug() << "IsotopeParser::startElement(), localName " << localName << endl; if (localName == "isotopeList") { - kDebug() << "setting inElement true! ========================== NEW ELEMENT ========= " << endl; +//X kDebug() << "setting inElement true! ========================== NEW ELEMENT ========= " << endl; d->inElement = true; //now save the symbol of the current element @@ -95,11 +95,11 @@ bool IsotopeParser::startElement(const QString&, const QString &localName, const if ( attrs.localName( i ) == "id" ) d->currentElementSymbol = attrs.value( i ); - kDebug() << "Symbol of the current Element: " << attrs.value( i ) << endl; +//X kDebug() << "Symbol of the current Element: " << attrs.value( i ) << endl; } } else if ( d->inElement && localName == "isotope") { - kDebug() << "setting inIsotope true!" << endl; +//X kDebug() << "setting inIsotope true!" << endl; d->currentIsotope = new Isotope(); d->inIsotope = true; } else if (d->inIsotope && localName == "bo:spin") { @@ -168,7 +168,7 @@ bool IsotopeParser::endElement( const QString&, const QString& localName, const } else if ( localName == "isotopeList" ) {//a new list of isotopes start... - kDebug() << "setting d->inElement FALSE" << endl; +//X kDebug() << "setting d->inElement FALSE" << endl; d->inElement = false; }