- Two cases of image.png not being found when run from install directory
Change-Id: I5f20b7a0ea0b120ce06c556b83bc20dd658a4f83
Reviewed-by: Kurt Korbatits <kurt.korbatits@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
img.fill(0xffff0000);
QIcon icon1(QPixmap::fromImage(img));
QIcon icon2 = icon1;
- icon2.addFile("image.png", QSize(64, 64));
+ icon2.addFile(QFINDTESTDATA("image.png"), QSize(64, 64));
QImage img1 = icon1.pixmap(64, 64).toImage();
QImage img2 = icon2.pixmap(64, 64).toImage();
void tst_QIcon::task184901_badCache()
{
- QPixmap pm("image.png");
+ QPixmap pm(QFINDTESTDATA("image.png"));
QIcon icon(pm);
//the disabled icon must have an effect (grayed)