void GuiPainter::setQPainterPen(QColor const & col,
- Painter::line_style ls, int lw)
+ Painter::line_style ls, int lw, Qt::PenJoinStyle js)
{
if (col == current_color_ && ls == current_ls_ && lw == current_lw_)
return;
pen.setWidth(lw);
+ pen.setJoinStyle(js);
+
setPen(pen);
}
line_style ls,
int lw)
{
- setQPainterPen(computeColor(col), ls, lw);
+ setQPainterPen(computeColor(col), ls, lw, Qt::MiterJoin);
drawRect(x, y, w, h);
}
/// set pen parameters
void setQPainterPen(QColor const & col,
- line_style ls = line_solid, int lw = thin_line);
+ line_style ls = line_solid, int lw = thin_line,
+ Qt::PenJoinStyle js = Qt::BevelJoin);
// Direction for painting text
enum Direction { LtR, RtL, Auto };