mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix some misprint
When print on printer with low resolution, some lines are not printed because to thin. Thin line of elements : set width to 0.5 instead of 0 and set cosmetic option to false. Folio border and titleblock : set width to 1 and set cosmetic option to false.
This commit is contained in:
@@ -1515,7 +1515,6 @@ void TitleBlockTemplate::render(QPainter &painter,
|
||||
painter.save();
|
||||
//Setup the QPainter
|
||||
QPen pen(Qt::black);
|
||||
pen.setCosmetic(true);
|
||||
painter.setPen(pen);
|
||||
|
||||
// draw the titleblock border
|
||||
@@ -1661,7 +1660,7 @@ void TitleBlockTemplate::renderCell(QPainter &painter,
|
||||
const QRect &cell_rect) const
|
||||
{
|
||||
// draw the border rect of the current cell
|
||||
QPen pen(QBrush(), 0.0, Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
|
||||
QPen pen(QBrush(), 1, Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
|
||||
pen.setColor(Qt::black);
|
||||
painter.setPen(pen);
|
||||
painter.drawRect(cell_rect);
|
||||
|
||||
Reference in New Issue
Block a user