D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-24 Thread Eike Hein
This revision was automatically updated to reflect the committed changes. Closed by commit R242:bc33f0470d4d: Set implicit size from source size for image/SVG URL sources. (authored by hein). REPOSITORY R242 Plasma Framework (Library) CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D51

D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-24 Thread Marco Martin
mart accepted this revision. This revision is now accepted and ready to land. REPOSITORY R242 Plasma Framework (Library) BRANCH master REVISION DETAIL https://phabricator.kde.org/D5160 To: hein, #plasma, mart, davidedmundson Cc: drosca, plasma-devel, #frameworks, progwolff, lesliezhai, al

D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-23 Thread David Rosca
drosca added a comment. You don't reset the implicitSize anywhere, so if you do setSource(QImage) and then setSource(QIcon) it will still have the implicitSize of the previously set QImage. REPOSITORY R242 Plasma Framework (Library) REVISION DETAIL https://phabricator.kde.org/D5160 To:

D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-23 Thread Eike Hein
hein updated this revision to Diff 12755. hein added a comment. Always update implicit size. REPOSITORY R242 Plasma Framework (Library) CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5160?vs=12752&id=12755 BRANCH master REVISION DETAIL https://phabricator.kde.org/D5160 AFFE

D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-23 Thread Eike Hein
hein added a comment. That was me being sleepy and trying to be smart and cunning and avoid busywork :) REPOSITORY R242 Plasma Framework (Library) REVISION DETAIL https://phabricator.kde.org/D5160 To: hein, #plasma, mart, davidedmundson Cc: drosca, plasma-devel, #frameworks, progwolff,

D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-23 Thread Eike Hein
hein added a dependent revision: D5162: Port custom image mode to IconItem.. REPOSITORY R242 Plasma Framework (Library) REVISION DETAIL https://phabricator.kde.org/D5160 To: hein, #plasma, mart, davidedmundson Cc: plasma-devel, #frameworks, progwolff, lesliezhai, ali-mohamed, jensreuterberg

D5160: Set implicit size from source size for image/SVG URL sources.

2017-03-23 Thread Eike Hein
hein created this revision. Restricted Application added projects: Plasma, Frameworks. Restricted Application added a subscriber: Frameworks. REVISION SUMMARY This allows users of IconItem to know the aspect ratio of the source document, which can be used to size the item or set applet size