it does make sense to do this here
parent
7809e2ab58
commit
bf84a1dc1f
|
@ -132,9 +132,9 @@ void PatchboardScene::drawBackground(QPainter* painter, const QRectF& rect) {
|
||||||
|
|
||||||
const constexpr int step = 32; // grid size
|
const constexpr int step = 32; // grid size
|
||||||
painter->setPen(QPen(QColor(127, 127, 127, 63), 1));
|
painter->setPen(QPen(QColor(127, 127, 127, 63), 1));
|
||||||
for (auto y = std::floor(rect.top() / step) * step + .5; y < rect.bottom(); y += step)
|
for (auto y = std::floor(rect.top() / step) * step + .5; y < rect.bottom(); y += step) // NOLINT
|
||||||
painter->drawLine(QPointF(rect.left(), y), QPointF(rect.right(), y));
|
painter->drawLine(QPointF(rect.left(), y), QPointF(rect.right(), y));
|
||||||
for (auto x = std::floor(rect.left() / step) * step + .5; x < rect.right(); x += step)
|
for (auto x = std::floor(rect.left() / step) * step + .5; x < rect.right(); x += step) // NOLINT
|
||||||
painter->drawLine(QPointF(x, rect.top()), QPointF(x, rect.bottom()));
|
painter->drawLine(QPointF(x, rect.top()), QPointF(x, rect.bottom()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue