Commit 7df691ff authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.Navigator: Minor cosmetic changes

parent 486cc40a
......@@ -152,7 +152,7 @@ void IdItemDelegate::paint(QPainter *painter,
}
QPixmap pixmap = icon.pixmap(22,22);
painter->drawPixmap(option.rect.x()+5,option.rect.y()+2,pixmap);
painter->drawPixmap(option.rect.x(),option.rect.y()+2,pixmap);
QString myString = node.id();
if (myString.isEmpty())
......@@ -172,7 +172,7 @@ void IdItemDelegate::paint(QPainter *painter,
}
}
painter->drawText(option.rect.bottomLeft()+QPoint(8+pixmap.width(),-8),myString);
painter->drawText(option.rect.bottomLeft()+QPoint(3+pixmap.width(),-8),myString);
painter->restore();
}
......
......@@ -82,6 +82,7 @@ void NavigatorWidget::setTreeModel(QAbstractItemModel* model)
m_treeView->header()->setResizeMode(0, QHeaderView::Stretch);
m_treeView->header()->resizeSection(1,26);
m_treeView->setRootIsDecorated(false);
m_treeView->setIndentation(40);
#ifdef _LOCK_ITEMS_
m_treeView->header()->resizeSection(2,20);
#endif
......
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