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
78d983ee
Commit
78d983ee
authored
Sep 24, 2020
by
Albert Astals Cid
Browse files
drawRoundRect -> drawRoundedRect
parent
5eef3e50
Changes
3
Hide whitespace changes
Inline
Side-by-side
generators/dvi/special.cpp
View file @
78d983ee
...
...
@@ -410,7 +410,7 @@ void dviRenderer::epsf_special(const QString &cp)
else
foreGroundPainter
->
setBrush
(
Qt
::
red
);
foreGroundPainter
->
setPen
(
Qt
::
black
);
foreGroundPainter
->
drawRoundRect
(
bbox
,
2
,
2
);
foreGroundPainter
->
drawRound
ed
Rect
(
bbox
,
2
,
2
);
QFont
f
=
foreGroundPainter
->
font
();
f
.
setPointSize
(
8
);
foreGroundPainter
->
setFont
(
f
);
...
...
ui/pageviewutils.cpp
View file @
78d983ee
...
...
@@ -343,7 +343,7 @@ void PageViewMessage::paintEvent(QPaintEvent * /* e */)
}
int
textXOffset
=
0
,
// add 2 to account for the reduced drawRoundRect later
// add 2 to account for the reduced drawRound
ed
Rect later
textYOffset
=
(
geometry
().
height
()
-
textRect
.
height
()
-
detailsRect
.
height
()
-
m_lineSpacing
+
2
)
/
2
,
iconXOffset
=
0
,
iconYOffset
=
!
m_symbol
.
isNull
()
?
(
geometry
().
height
()
-
m_symbol
.
height
())
/
2
:
0
,
shadowOffset
=
1
;
if
(
layoutDirection
()
==
Qt
::
RightToLeft
)
...
...
@@ -357,7 +357,7 @@ void PageViewMessage::paintEvent(QPaintEvent * /* e */)
painter
.
setPen
(
Qt
::
black
);
painter
.
setBrush
(
palette
().
color
(
QPalette
::
Window
));
painter
.
translate
(
0.5
,
0.5
);
painter
.
drawRoundRect
(
1
,
1
,
width
()
-
2
,
height
()
-
2
,
1600
/
width
(),
1600
/
height
());
painter
.
drawRound
ed
Rect
(
1
,
1
,
width
()
-
2
,
height
()
-
2
,
1600
.0
/
width
(),
1600
.0
/
height
());
// draw icon if present
if
(
!
m_symbol
.
isNull
())
...
...
ui/side_reviews.cpp
View file @
78d983ee
...
...
@@ -75,7 +75,7 @@ protected:
p
.
setBrush
(
palette
().
window
());
p
.
translate
(
0.5
,
0.5
);
p
.
drawRoundRect
(
15
,
15
,
w
,
h
,
(
8
*
200
)
/
w
,
(
8
*
200
)
/
h
);
p
.
drawRound
ed
Rect
(
15
,
15
,
w
,
h
,
(
8
*
200
.0
)
/
w
,
(
8
*
200
.0
)
/
h
);
p
.
translate
(
20
,
20
);
document
.
drawContents
(
&
p
);
...
...
snooxx
@snooxx
mentioned in merge request
!586 (merged)
·
Mar 12, 2022
mentioned in merge request
!586 (merged)
mentioned in merge request !586
Toggle commit list
snooxx
@snooxx
mentioned in commit
2ad9e6f0
·
Mar 18, 2022
mentioned in commit
2ad9e6f0
mentioned in commit 2ad9e6f0b322d0e5f3603a5d686bd718b479da28
Toggle commit list
snooxx
@snooxx
mentioned in commit
667e7332
·
Mar 18, 2022
mentioned in commit
667e7332
mentioned in commit 667e73325ab83e7292712fd9938b22aff379b57c
Toggle commit list
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