D6126: Support fractional scaling in generating the sidebar preview
David Edmundson
noreply at phabricator.kde.org
Tue Jun 6 22:06:26 UTC 2017
davidedmundson created this revision.
Restricted Application added projects: Plasma, Frameworks.
Restricted Application added subscribers: Frameworks, kwrite-devel, plasma-devel.
REVISION SUMMARY
QPaintDevice::devicePixelRatio was replaced by devicePixelRatioF when Qt
supported fractional scaling as the type changed but needed to keep API.
Every other call to devicePixelRatio was already a qreal.
The sidebar was already scaled up to the fractional size, but the pixmap
was generated at the integer version. End result is that it wasn't quite as
crisp as it could be.
TEST PLAN
QT_SCALE_FACTOR=1.4 kate
Opened bug fix and used minimap as before
My extra assert in QPaintDevice::devicePixelRatio was never fired
REPOSITORY
R39 KTextEditor
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D6126
AFFECTED FILES
src/view/kateviewhelpers.cpp
To: davidedmundson, #plasma
Cc: plasma-devel, kwrite-devel, #frameworks, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170606/9ac8f8dc/attachment.html>
More information about the Plasma-devel
mailing list