D29397: KPreviewJob : Support for DeviceRatioPixel
Méven Car
noreply at phabricator.kde.org
Mon May 18 07:37:22 BST 2020
meven added a comment.
In D29397#672557 <https://phabricator.kde.org/D29397#672557>, @elvisangelaccio wrote:
> Would it make sense to initialize `devicePixelRatio` to `QGuiApplication::devicePixelRatio()` and add an API to change it (if desired) ?
It would make KPreviewJob casting a `QCoreApplication::instance` to `QGuiApplication::devicePixelRatio` that would be tolerable.
But this would make the feature opt-out : apps could get broken when their previews double their size just when changing KF version.
> This way we wouldn't need to call a static method in the `main` of every client app (i.e. D29525 <https://phabricator.kde.org/D29525> wouldn't be needed).
This is a single static call for the lifetime of the app, not that hard.
This makes the feature opt-in, meaning the developer has tested it.
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D29397
To: meven, dfaure, broulik, #frameworks, ngraham
Cc: elvisangelaccio, kossebau, davidedmundson, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200518/556273a2/attachment.htm>
More information about the Kde-frameworks-devel
mailing list