else if (pa.attribute("default").contains(";"))
defaults = pa.attribute("default").split(";");
QStringList maxv = pa.attribute("max").split(";");
- QStringList minv = pa.attribute("max").split(";");
+ QStringList minv = pa.attribute("min").split(";");
for (int i = 0;i < maxv.size() && i < minv.size();i++) {
if (max_y < maxv[i].toInt()) max_y = maxv[i].toInt();
if (min_y > minv[i].toInt()) min_y = minv[i].toInt();
}
-
for (int i = 0;i < parameterNameList.count();i++) {
KPlotObject *plot = new KPlotObject(colors[plotobjects.size()%colors.size()]);
plot->setShowLines(true);
if (namenode.count() > 0) {
for (int i = 0;i < plotobjs.count();i++) {
QList<KPlotPoint*> points = plotobjs[i]->points();
- foreach(KPlotPoint *o, points) {
+ foreach(const KPlotPoint *o, points) {
txtstr << (int)o->y() ;
break;//first no keyframes
}
double newx = inPlot.x() * dataRect().width() / pixRect().width();
double newy = (height() - inPlot.y() - bottomPadding() - topPadding()) * dataRect().height() / pixRect().height();
bool inserted = false;
- foreach(KPlotPoint* pt, points) {
+ foreach(const KPlotPoint* pt, points) {
if (pt->x() > newx && !inserted) {
newpoints.append(QPointF(newx, newy));
inserted = true;
newpoints.append(QPointF(pt->x(), pt->y()));
}
p->clearPoints();
- foreach(QPointF qf, newpoints) {
+ foreach(const QPointF qf, newpoints) {
p->addPoint(qf);
}
replacePlotObject(activeIndexPlot, p);