QmlDesigner.Navigator: TreeView updated when switching between components in the visual editor

This commit is contained in:
Christiaan Janssen
2010-02-15 16:24:49 +01:00
parent 749f57f356
commit feb181ce5e
2 changed files with 10 additions and 8 deletions

View File

@@ -32,6 +32,7 @@
#include "navigatorwidget.h"
#include <nodeproperty.h>
#include <QHeaderView>
namespace QmlDesigner {
@@ -85,6 +86,15 @@ void NavigatorView::modelAttached(Model *model)
m_treeModel->setView(this);
treeWidget()->expandAll();
treeWidget()->header()->setResizeMode(0, QHeaderView::Stretch);
treeWidget()->header()->resizeSection(1,26);
treeWidget()->setRootIsDecorated(false);
treeWidget()->setIndentation(40);
#ifdef _LOCK_ITEMS_
treeWidget()->header()->resizeSection(2,20);
#endif
treeWidget()->setHeaderHidden(true);
}
void NavigatorView::modelAboutToBeDetached(Model *model)