Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Improve support for HiDPI displays #2325

Merged
merged 4 commits into from
Jun 14, 2017

Conversation

ales-erjavec
Copy link
Contributor

Issue

Parts of the canvas are unaware of QPaintDevice.devicePixelRatio.

Description of changes
  • Enable use of high dpi pixmaps if available.
  • Provide larger generated icons where applicable.
  • Use QIcon.paint instead of going through QIcon.pixmap -> drawPixmap.
  • Workaround for QGraphicsEffect lack of devicePixelRatio support.
Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

codecov-io commented May 19, 2017

Codecov Report

Merging #2325 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2325      +/-   ##
==========================================
+ Coverage   73.87%   73.88%   +0.01%     
==========================================
  Files         322      322              
  Lines       55835    55843       +8     
==========================================
+ Hits        41248    41262      +14     
+ Misses      14587    14581       -6

Enable high dpi icon pixmaps, avoid QIcon.pixmap calls in favor of
direct QIcon.paint
Use a background item with the same shape on which to attach the
QGraphicsDropShadowEffect. Using QGraphicsEffect on an any item
QGraphicsItem makes it devicePixelRatio unaware.
@astaric astaric merged commit d814783 into biolab:master Jun 14, 2017
@ales-erjavec ales-erjavec deleted the high-dpi-icons branch June 14, 2017 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants