From 07014f82a00070696187b8084cc6afc0112fb008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Thu, 17 Feb 2011 12:21:40 +0100 Subject: [PATCH] QmlJSInspector: Fixed the border around the color icon It was being drawn one pixel too large, showing some garbage pixels. --- src/plugins/qmljsinspector/qmljspropertyinspector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmljsinspector/qmljspropertyinspector.cpp b/src/plugins/qmljsinspector/qmljspropertyinspector.cpp index 06d317ba118..ecf73cee1de 100644 --- a/src/plugins/qmljsinspector/qmljspropertyinspector.cpp +++ b/src/plugins/qmljsinspector/qmljspropertyinspector.cpp @@ -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)