David Rosca
ab302872d3
Fix iconitem test - second try
2016-03-06 16:13:54 +01:00
David Rosca
fa1ca80281
Fix iconitem test
...
Icon name for QIcon must be from test-theme
2016-03-05 11:05:52 +01:00
David Rosca
978b8b3b87
IconItem: Don't overwrite source when using QIcon::name()
...
source should always return the same value as it was assigned.
Also removed duplicated code (empty sourceString is now handled
as if the source couldn't be converted to any type).
REVIEW: 127282
2016-03-04 23:44:57 +01:00
David Edmundson
531b7f3a95
Add unit test for loading QPixmaps and QImages into IconItem
...
REVIEW: 127269
2016-03-04 00:20:35 +00:00
David Rosca
37fde3974e
IconItemTest: Skip when grabToImage fails
2016-02-29 22:29:51 +01:00
David Rosca
30368e1d45
IconItem: Fix changing color of svg icons loaded from icon theme
...
Connect to repaintNeeded when creating Plasma::Svg.
REVIEW: 127207
2016-02-29 22:28:58 +01:00
Weng Xuetian
066cf0a0d7
Fix svg iconPath resolving in IconItem
...
This fixes iconPath is not correctly set when its size changes.
REVIEW: 127201
2016-02-29 13:05:48 -08:00
David Rosca
3c8cb82d44
Fix build with Qt < 5.6
2016-02-28 10:36:57 +01:00
David Rosca
526915895b
Add autotests for IconItem
...
Add some tests for IconItem.
Also found one issue in animation when quickly changing source, first frame
will be rendered with wrong icon.
REVIEW: 127103
2016-02-27 21:24:45 +01:00