aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-12-21 18:27:45 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-01-04 16:39:24 +0000
commit59c186de5f3cbf3f85cec0735fd05a9050aa617f (patch)
tree8413f95b3ff7c2b305ff6caa88c75ba9ab5c6cd6 /src/plugins/qmlprofiler/tests
parent5dd4b7d8fe72e5580f5248cb22dd4849ed6ea48e (diff)
QmlProfiler: Resolve pixmap file name via pixmapcache model in test
This tests that the file name is correctly stored in the model and it removes the detour via the model manager. Change-Id: Icc592b6383edcb18bfe31a81eb7ae0736a4f5508 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/tests')
-rw-r--r--src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp b/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp
index cc7beb7ec6..adfd168242 100644
--- a/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp
+++ b/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp
@@ -281,8 +281,7 @@ void PixmapCacheModelTest::testColor()
else
QCOMPARE(model.color(i), row1Color);
} else {
- const QmlEventType &type = manager.qmlModel()->eventTypes()[model.typeId(i)];
- QRgb &pixmapColor = (type.location().filename() == QString("blah.png")) ?
+ QRgb &pixmapColor = (model.fileName(i) == QString("blah.png")) ?
blahColor : dingsColor;
if (pixmapColor == 0)
pixmapColor = model.color(i);