Merge lp:~fboucault/unity-2d/dash_thumb_respect_ratio into lp:unity-2d/3.0

Proposed by Florian Boucault
Status: Merged
Approved by: Gerry Boland
Approved revision: 682
Merged at revision: 684
Proposed branch: lp:~fboucault/unity-2d/dash_thumb_respect_ratio
Merge into: lp:unity-2d/3.0
Diff against target: 12 lines (+1/-1)
1 file modified
libunity-2d-private/src/iconimageprovider.cpp (+1/-1)
To merge this branch: bzr merge lp:~fboucault/unity-2d/dash_thumb_respect_ratio
Reviewer Review Type Date Requested Status
Gerry Boland Pending
Review via email: mp+72609@code.launchpad.net

Description of the change

[dash] IconImageProvider: preserve the aspect ratio when loading the icon.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libunity-2d-private/src/iconimageprovider.cpp'
--- libunity-2d-private/src/iconimageprovider.cpp 2011-07-29 13:49:34 +0000
+++ libunity-2d-private/src/iconimageprovider.cpp 2011-08-23 17:36:17 +0000
@@ -68,7 +68,7 @@
68 }68 }
6969
70 if (requestedSize.isValid()) {70 if (requestedSize.isValid()) {
71 icon = icon.scaled(requestedSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);71 icon = icon.scaled(requestedSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
72 }72 }
7373
74 if (size) {74 if (size) {

Subscribers

People subscribed via source and target branches