On Sun, Sep 11, 2016 at 03:48:55AM +0100, Guillaume Munch wrote:
> 
> Getting the perfect result is a good reason for having such a
> long code. Maybe the "ouch!" effect is because it is added as is.
> It looks like it could be made a function in qt_helpers or some other
> appropriate place, doesn't it? For better maintainability and
> re-use.

I had also thought about modifying getPixmap by adding a size parameter
but I deemed the changes too large to be justifiable by a single usage.
However, I see that this strategy is also used for scaling the splash
screen (also taking into account the pixelratio thing, maybe for Mac).
This would make two usages and maybe justifies a helper method.
But everyone could do that (hint, hint ;)

-- 
Enrico

Reply via email to