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:
blacksun
2015-03-24 23:10:15 +00:00
parent 2f9fd79371
commit af63714517
3 changed files with 13 additions and 3 deletions

View File

@@ -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();