mirror of
https://invent.kde.org/graphics/okular
synced 2024-06-30 22:54:24 +00:00
buildPen: honor annotation opacity
Otherwise changing the opacity of lines/arrows does nothing
This commit is contained in:
parent
389c7b0235
commit
1c7c7275e1
|
@ -43,7 +43,9 @@ Q_GLOBAL_STATIC_WITH_ARGS(QPixmap, busyPixmap, (KIconLoader::global()->loadIcon(
|
|||
|
||||
inline QPen buildPen(const Okular::Annotation *ann, double width, const QColor &color)
|
||||
{
|
||||
QPen p(QBrush(color), width, ann->style().lineStyle() == Okular::Annotation::Dashed ? Qt::DashLine : Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
|
||||
QColor c = color;
|
||||
c.setAlphaF(ann->style().opacity());
|
||||
QPen p(QBrush(c), width, ann->style().lineStyle() == Okular::Annotation::Dashed ? Qt::DashLine : Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user