forked from qt-creator/qt-creator
QmlProfiler: Don't convert between QColor and QVariantList
There is no reason to express colors as QVariantList. Change-Id: I8c816e547b2f9be0f02a9d275791021ac06cff4f Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -74,8 +74,7 @@ function drawData(canvas, ctxt)
|
||||
var itemHeight = qmlProfilerModelProxy.getHeight(modelIndex,ii) * blockHeight;
|
||||
var yy = (rowNumber + 1) * blockHeight - itemHeight ;
|
||||
|
||||
var itemColor = qmlProfilerModelProxy.getColorRGB(modelIndex, ii);
|
||||
ctxt.fillStyle = "rgb("+itemColor[0]+","+itemColor[1]+","+itemColor[2]+")";
|
||||
ctxt.fillStyle = qmlProfilerModelProxy.getColor(modelIndex, ii);
|
||||
ctxt.fillRect(xx, bump + yy, eventWidth, itemHeight);
|
||||
}
|
||||
modelRowStart += qmlProfilerModelProxy.categoryCount(modelIndex);
|
||||
|
||||
Reference in New Issue
Block a user