Commit 07014f82 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

QmlJSInspector: Fixed the border around the color icon

It was being drawn one pixel too large, showing some garbage pixels.
parent bd92874c
......@@ -411,8 +411,8 @@ void QmlJSPropertyInspector::setColorIcon(int row)
QPainter p(&colorpix);
p.fillRect(1,1,recomendedLength-2,recomendedLength-2, color);
p.setPen(Qt::black);
p.drawRect(0,0,recomendedLength, recomendedLength);
item->setIcon(QIcon(colorpix));
p.drawRect(0, 0, recomendedLength - 1, recomendedLength - 1);
item->setIcon(colorpix);
}
void QmlJSPropertyInspector::contextMenuEvent(QContextMenuEvent *ev)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment