int i = 0;
while (!namenode.item(i).isNull() && namenode.item(i).toElement().attribute("name") != m_paramName)
++i;
- if (namenode.count()) {
-
+ if (namenode.count()) {
QDomElement pa = namenode.item(i).toElement();
- QDomNode na = pa.firstChildElement("name");
+ //QDomNode na = pa.firstChildElement("name");
m_parameterNameList << pa.attribute("namedesc").split(';');
emit parameterList(m_parameterNameList);
QString paramlist;
QTextStream txtstr(¶mlist);
QDomNode pa = namenode.item(0);
- if (namenode.count() > 0) {
+ if (!namenode.isEmpty()) {
for (int i = 0; i < plotobjs.count(); ++i) {
- QList<KPlotPoint*> points = plotobjs[i]->points();
+ QList<KPlotPoint*> points = plotobjs.at(i)->points();
foreach(const KPlotPoint *o, points) {
txtstr << (int)o->y() ;
break;//first no keyframes