mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Add option to draw or not the grid outside of the border of folio.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3850 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -134,7 +134,11 @@ void Diagram::drawBackground(QPainter *p, const QRectF &r) {
|
||||
p->setPen(pen);
|
||||
|
||||
p -> setBrush(Qt::NoBrush);
|
||||
QRectF rect = border_and_titleblock.insideBorderRect().intersected(r);
|
||||
|
||||
QRectF rect = QETApp::settings().value("diagrameditor/draw-grid-outside-of-border", false).toBool() ?
|
||||
r :
|
||||
border_and_titleblock.insideBorderRect().intersected(r);
|
||||
|
||||
qreal limite_x = rect.x() + rect.width();
|
||||
qreal limite_y = rect.y() + rect.height();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user