This commit is contained in:
jkriege2 2022-08-25 16:53:44 +02:00
parent 69adb3adfb
commit c2338c07b1
2 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ void JKQTPXYLineGraph::draw(JKQTPEnhancedPainter& painter) {
//qDebug()<<"JKQTPXYLineGraph::draw(): linesToDraw.size()=="<<linesToDraw.size()<<", clip: x="<<xmin<<".."<<xmax<<", y="<<ymin<<".."<<ymax; //qDebug()<<"JKQTPXYLineGraph::draw(): linesToDraw.size()=="<<linesToDraw.size()<<", clip: x="<<xmin<<".."<<xmax<<", y="<<ymin<<".."<<ymax;
for (const auto &linesPFromV : linesToDraw) { for (const auto &linesPFromV : linesToDraw) {
//qDebug()<<"JKQTPXYLineGraph::draw(): linesPFromV.size()=="<<linesPFromV.size()<<" useNonvisibleLineCompression="<<getUseNonvisibleLineCompression(); //qDebug()<<"JKQTPXYLineGraph::draw(): linesPFromV.size()=="<<linesPFromV.size()<<" useNonvisibleLineCompression="<<getUseNonvisibleLineCompression();
const QList<QPointF> linesP=getUseNonvisibleLineCompression()?JKQTPSimplifyPolyLines(linesPFromV, p.widthF()*getNonvisibleLineCompressionAgressiveness()):linesPFromV; const QPolygonF linesP=getUseNonvisibleLineCompression()?JKQTPSimplifyPolyLines(linesPFromV, p.widthF()*getNonvisibleLineCompressionAgressiveness()):linesPFromV;
//qDebug()<<"JKQTPXYLineGraph::draw(): --> linesP.size()=="<<linesP.size(); //qDebug()<<"JKQTPXYLineGraph::draw(): --> linesP.size()=="<<linesP.size();
if (linesP.size()>0) { if (linesP.size()>0) {
if (isHighlighted()) { if (isHighlighted()) {

View File

@ -274,7 +274,7 @@ void JKQTPSpecialLineHorizontalGraph::draw(JKQTPEnhancedPainter& painter) {
if (isHighlighted()) { if (isHighlighted()) {
painter.setBrush(Qt::NoBrush); painter.setBrush(Qt::NoBrush);
painter.setPen(ph); painter.setPen(ph);
for (const auto &lines : pl_fordrawing) { for (const QPolygonF lines : pl_fordrawing) {
painter.drawPolyline(lines); painter.drawPolyline(lines);
} }
} }
@ -282,7 +282,7 @@ void JKQTPSpecialLineHorizontalGraph::draw(JKQTPEnhancedPainter& painter) {
if (getDrawLine()) { if (getDrawLine()) {
painter.setBrush(Qt::NoBrush); painter.setBrush(Qt::NoBrush);
painter.setPen(p); painter.setPen(p);
for (const auto &lines : pl_fordrawing) { for (const QPolygonF lines : pl_fordrawing) {
painter.drawPolyline(lines); painter.drawPolyline(lines);
} }
} }
@ -460,7 +460,7 @@ void JKQTPSpecialLineVerticalGraph::draw(JKQTPEnhancedPainter& painter) {
if (isHighlighted()) { if (isHighlighted()) {
painter.setBrush(Qt::NoBrush); painter.setBrush(Qt::NoBrush);
painter.setPen(ph); painter.setPen(ph);
for (const auto &lines : pl_fordrawing) { for (const QPolygonF lines : pl_fordrawing) {
painter.drawPolyline(lines); painter.drawPolyline(lines);
} }
} }
@ -468,7 +468,7 @@ void JKQTPSpecialLineVerticalGraph::draw(JKQTPEnhancedPainter& painter) {
if (getDrawLine()) { if (getDrawLine()) {
painter.setBrush(Qt::NoBrush); painter.setBrush(Qt::NoBrush);
painter.setPen(p); painter.setPen(p);
for (const auto &lines : pl_fordrawing) { for (const QPolygonF lines : pl_fordrawing) {
painter.drawPolyline(lines); painter.drawPolyline(lines);
} }
} }