mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 18:15:52 +08:00
bugfix
This commit is contained in:
parent
69adb3adfb
commit
c2338c07b1
@ -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()) {
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user