summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qabstractbutton.cpp
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2015-03-09 19:18:27 +0100
committerDavid Edmundson <davidedmundson@kde.org>2015-03-09 21:14:16 +0000
commit4c0c53742140ef6f35a5258e79f62a202fe9832e (patch)
tree51496b78031a5686a047a7bfdb4ef31cf0279d86 /src/widgets/widgets/qabstractbutton.cpp
parent1cc8ec1e78cedcf4600b216978b3b08bf08ddf66 (diff)
Avoid detaching pixmaps when it has not changed
setDevicePixelRatio is often called unconditionally even when the devicePixelRatio matches the pixmap or image. This causes a lot of unncessary detaches wasting some memory. Change-Id: I27535b2b22312ec0edc9bdc00c99d322afb727c1 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/widgets/widgets/qabstractbutton.cpp')
0 files changed, 0 insertions, 0 deletions