Fix iconitem test

Icon name for QIcon must be from test-theme
This commit is contained in:
David Rosca 2016-03-05 10:46:19 +01:00
parent 978b8b3b87
commit fa1ca80281

View File

@ -337,8 +337,8 @@ void IconItemTest::qiconFromTheme()
{
// Icon from Plasma theme
QQuickItem *item1 = createIconItem();
item1->setProperty("source", QIcon::fromTheme("zoom-fit-height"));
QIcon icon1 = QIcon::fromTheme("zoom-fit-height");
QIcon icon1 = QIcon::fromTheme("konversation");
item1->setProperty("source", icon1);
QVERIFY(item1->findChild<Plasma::Svg*>());
QVERIFY(!imageIsEmpty(grabImage(item1)));
QCOMPARE(icon1, item1->property("source").value<QIcon>());