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
Education
Kalzium
Commits
8422fbe4
Commit
8422fbe4
authored
Dec 22, 2020
by
Johnny Jazeix
Browse files
enable hidpi for information panel
BUG: 415734
parent
e24200a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/detailedgraphicaloverview.cpp
View file @
8422fbe4
...
...
@@ -69,9 +69,13 @@ void DetailedGraphicalOverview::setBackgroundColor(QColor bgColor)
void
DetailedGraphicalOverview
::
paintEvent
(
QPaintEvent
*
)
{
QRect
rect
(
0
,
0
,
width
(),
height
());
qreal
dpr
=
devicePixelRatioF
();
qreal
dprWidth
=
dpr
*
width
();
qreal
dprHeight
=
dpr
*
height
();
QRect
rect
(
0
,
0
,
dprWidth
,
dprHeight
);
QPixmap
pm
(
width
(),
height
());
QPixmap
pm
(
dprWidth
,
dprHeight
);
pm
.
setDevicePixelRatio
(
dpr
);
QPainter
p
;
p
.
begin
(
&
pm
);
...
...
Write
Preview
Supports
Markdown
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