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

QmlDesigner.Navigator: Minor cosmetic changes

parent 486cc40a
No related branches found
No related tags found
No related merge requests found
...@@ -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(),option.rect.y()+2,pixmap);
QString myString = node.id(); QString myString = node.id();
if (myString.isEmpty()) if (myString.isEmpty())
...@@ -172,7 +172,7 @@ void IdItemDelegate::paint(QPainter *painter, ...@@ -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(); painter->restore();
} }
......
...@@ -82,6 +82,7 @@ void NavigatorWidget::setTreeModel(QAbstractItemModel* model) ...@@ -82,6 +82,7 @@ void NavigatorWidget::setTreeModel(QAbstractItemModel* model)
m_treeView->header()->setResizeMode(0, QHeaderView::Stretch); m_treeView->header()->setResizeMode(0, QHeaderView::Stretch);
m_treeView->header()->resizeSection(1,26); m_treeView->header()->resizeSection(1,26);
m_treeView->setRootIsDecorated(false); m_treeView->setRootIsDecorated(false);
m_treeView->setIndentation(40);
#ifdef _LOCK_ITEMS_ #ifdef _LOCK_ITEMS_
m_treeView->header()->resizeSection(2,20); m_treeView->header()->resizeSection(2,20);
#endif #endif
......
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