Skip to content
Commit ef488d33 authored by David Hurka's avatar David Hurka 🐬 Committed by Albert Astals Cid
Browse files

Generate presentation drawing tool icons in a custom QIconEngine, so...

Generate presentation drawing tool icons in a custom QIconEngine, so checkboxes can be sharp on hidpi

The checkboxes in the drawing tool icons in the presentation toolbar were not sharp on hiDPI, this fixes it.

The toolbar buttons are QActions with QIcons, and the icons were created from 25x25 pixmaps. That is usually smaller than the toolbar’s icon size, so the icons had a nice size. But at hiDPI, the icons were scaled up, so the checkmarks looked blurry.

Now the icons are generated in the correct resolution on the fly, because the painting code from ColorAction::setColor() is moved to a custom QIconEngine inside ColorAction.
parent 5abcbea6
Pipeline #18610 passed with stage
in 19 minutes and 18 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment