TechDraw: remove unneeded state from QGIFace

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-23 00:09:56 +01:00
parent 6cb6757908
commit 32da822741
4 changed files with 31 additions and 67 deletions

View File

@@ -213,6 +213,11 @@ QPainterPath PATPathMaker::dashedPPath(const std::vector<double> dashPattern, co
return result;
}
void PATPathMaker::setLineWidth(double width)
{
m_lineWidth = width;
m_pen.setWidthF(width);
}
//! convert a dash pattern to an offset dash pattern (ie offset -> end)
// dashPattern & offset are already scaled.