forked from qt-creator/qt-creator
QmlProfiler: Fix tests involving TimelineModel::color()
Change-Id: Ia3d1ab6be249fb7193ce084b7312e2b6192edad6 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ void DebugMessagesModelTest::testColor()
|
||||
// TimelineModel::colorBySelectionId ...
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
QCOMPARE(model.color(i),
|
||||
QColor::fromHsl((i % (QtMsgType::QtInfoMsg + 1) * 25) % 360, 150, 166));
|
||||
QColor::fromHsl((i % (QtMsgType::QtInfoMsg + 1) * 25) % 360, 150, 166).rgb());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user