Fix iconitem test
Icon name for QIcon must be from test-theme
This commit is contained in:
parent
978b8b3b87
commit
fa1ca80281
@ -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>());
|
||||
|
Loading…
Reference in New Issue
Block a user