diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2011-02-17 12:21:40 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2011-02-17 12:24:01 +0100 |
commit | 07014f82a00070696187b8084cc6afc0112fb008 (patch) | |
tree | 56dac1b7963cac47158f2afe77fc75d32a1c3650 /src/plugins/qmljsinspector | |
parent | bd92874c29dbfd2437fad68ec8a912ea8fd12841 (diff) | |
download | qt-creator-07014f82a00070696187b8084cc6afc0112fb008.tar.gz |
QmlJSInspector: Fixed the border around the color icon
It was being drawn one pixel too large, showing some garbage pixels.
Diffstat (limited to 'src/plugins/qmljsinspector')
-rw-r--r-- | src/plugins/qmljsinspector/qmljspropertyinspector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmljsinspector/qmljspropertyinspector.cpp b/src/plugins/qmljsinspector/qmljspropertyinspector.cpp index 06d317ba11..ecf73cee1d 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) |