! Changes the pen width to 1 if it currently is 0. This function is called in the \ref setPen overrides when the \ref pmNonCosmetic mode is set. */
| 466 | overrides when the \ref pmNonCosmetic mode is set. |
| 467 | */ |
| 468 | void QCPPainter::makeNonCosmetic() |
| 469 | { |
| 470 | if (qFuzzyIsNull(pen().widthF())) |
| 471 | { |
| 472 | QPen p = pen(); |
| 473 | p.setWidth(1); |
| 474 | QPainter::setPen(p); |
| 475 | } |
| 476 | } |
| 477 | /* end of 'src/painter.cpp' */ |
| 478 | |
| 479 |