Skip to content
Snippets Groups Projects
Commit 4f971b9b authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.Navigator: Recentered the icons one pixel up

parent d7745b3c
No related branches found
No related tags found
No related merge requests found
...@@ -114,9 +114,9 @@ void IconCheckboxItemDelegate::paint(QPainter *painter, ...@@ -114,9 +114,9 @@ void IconCheckboxItemDelegate::paint(QPainter *painter,
painter->setOpacity(0.5); painter->setOpacity(0.5);
if (isChecked) if (isChecked)
painter->drawPixmap(option.rect.x()+2,option.rect.y()+6,onPix); painter->drawPixmap(option.rect.x()+2,option.rect.y()+5,onPix);
else else
painter->drawPixmap(option.rect.x()+2,option.rect.y()+6,offPix); painter->drawPixmap(option.rect.x()+2,option.rect.y()+5,offPix);
painter->restore(); painter->restore();
} }
...@@ -152,7 +152,7 @@ void IdItemDelegate::paint(QPainter *painter, ...@@ -152,7 +152,7 @@ void IdItemDelegate::paint(QPainter *painter,
} }
QPixmap pixmap = icon.pixmap(22,22); QPixmap pixmap = icon.pixmap(22,22);
painter->drawPixmap(option.rect.x()+5,option.rect.y()+2,pixmap); painter->drawPixmap(option.rect.x()+5,option.rect.y()+1,pixmap);
QString myString = node.id(); QString myString = node.id();
if (myString.isEmpty()) if (myString.isEmpty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment