X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fparameterplotter.cpp;h=5550ba658e60882db2d30869bb4cdef0fe2018dc;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=f298bd79ca3084500332de9b93ae3bfe371ef496;hpb=ddd3e50e4fc7f2744ad8de03650b66714441bc24;p=kdenlive diff --git a/src/parameterplotter.cpp b/src/parameterplotter.cpp index f298bd79..5550ba65 100644 --- a/src/parameterplotter.cpp +++ b/src/parameterplotter.cpp @@ -77,11 +77,10 @@ void ParameterPlotter::setPointLists(const QDomElement& d, const QString& paramN 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); @@ -150,9 +149,9 @@ void ParameterPlotter::createParametersNew() 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 points = plotobjs[i]->points(); + QList points = plotobjs.at(i)->points(); foreach(const KPlotPoint *o, points) { txtstr << (int)o->y() ; break;//first no keyframes