Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
5185c6b3
Commit
5185c6b3
authored
Aug 07, 2020
by
Albert Astals Cid
Browse files
buildPen: honor annotation opacity
Otherwise changing the opacity of lines/arrows does nothing
parent
c171e5ae
Pipeline
#29930
passed with stage
in 59 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ui/pagepainter.cpp
View file @
5185c6b3
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment