diff --git a/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp b/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp index 8187bd696a5d9b643ab377e7c8400395a00c8cb6..2e688f23a8e34a5b1eaa7de4d05f90e4a14d6872 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatortreeview.cpp @@ -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(); } diff --git a/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp b/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp index d65b891893ec178e26b5798d70aa297b2008b8a7..6dca018f5e9b7908ef8f6544afabc6bccbd18621 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp @@ -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