[TD]use standard lines & LineFormat in extensions

This commit is contained in:
wandererfan
2023-12-26 12:03:36 -05:00
committed by WandererFan
parent 7236d7442a
commit 0c1f6138b4
7 changed files with 94 additions and 288 deletions

View File

@@ -113,12 +113,6 @@ QPen LineGenerator::getLinePen(size_t lineNumber, double nominalLineWidth)
proportionalAdjust = nominalLineWidth;
}
// Note: if the cap style is Round or Square, the lengths of the lines, or
// dots/dashes within the line, will be wrong by 1 pen width. To get the
// exact line lengths or dash pattern, you must use Flat caps. Flat caps
// look terrible at the corners.
linePen.setCapStyle((Qt::PenCapStyle)Preferences::LineCapStyle());
// valid line numbers are [1, number of line definitions]
// line 1 is always (?) continuous
// 0 substitutes for LineFormat::InvalidLine here