From 8919e11c6ed74cfd3d7b9f23d2a320a987286aee Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 1 Jun 2016 10:58:43 +0200 Subject: [PATCH] fix test sync the cache id generation to be in sync of the one used internally in Svg --- autotests/themetest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotests/themetest.cpp b/autotests/themetest.cpp index 6b6bc7113..d6fa78fdc 100644 --- a/autotests/themetest.cpp +++ b/autotests/themetest.cpp @@ -25,7 +25,7 @@ #include #define QLSEP QLatin1Char('_') -#define CACHE_ID_WITH_SIZE(size, id, devicePixelRatio) QString::number(int(size.width())) % QLSEP % QString::number(int(size.height())) % QLSEP % id % QLSEP % QLSEP % QString::number(int(devicePixelRatio)) +#define CACHE_ID_WITH_SIZE(size, id, state, devicePixelRatio) QString::number(int(size.width())) % QLSEP % QString::number(int(size.height())) % QLSEP % id % QLSEP % QString::number(state) % QLSEP % QString::number(int(devicePixelRatio)) void ThemeTest::initTestCase() { @@ -79,7 +79,7 @@ void ThemeTest::loadSvgIcon() m_svg->pixmap(); //trigger the SVG being loaded - QString cacheId = CACHE_ID_WITH_SIZE(QSize(48, 48), iconPath, m_svg->devicePixelRatio()) % QLSEP % QString::number(m_svg->colorGroup()); + QString cacheId = CACHE_ID_WITH_SIZE(QSize(48, 48), iconPath, Plasma::Svg::Normal, m_svg->devicePixelRatio()) % QLSEP % QString::number(m_svg->colorGroup()); QPixmap result; QVERIFY(m_svg->theme()->findInCache(cacheId, result));