Commit 22e31ceb authored by Simjees Abraham's avatar Simjees Abraham Committed by Christiaan Janssen
Browse files

Qml Editor: Modified the file structure outline.



The file structure outline now displays the id and the property
values.

Task-number: QTCREATORBUG-6209
Change-Id: I33efe20aab71647bc863cff5b5434c47e8d452a4
Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@nokia.com>
parent a031d5f6
......@@ -75,6 +75,7 @@
#include <utils/changeset.h>
#include <utils/uncommentselection.h>
#include <utils/qtcassert.h>
#include <utils/annotateditemdelegate.h>
#include <QFileInfo>
#include <QSignalMapper>
......@@ -1070,6 +1071,12 @@ void QmlJSTextEditorWidget::createToolBar(QmlJSEditorEditable *editor)
m_outlineCombo->setModel(m_outlineModel);
QTreeView *treeView = new QTreeView;
Utils::AnnotatedItemDelegate *itemDelegate = new Utils::AnnotatedItemDelegate(this);
itemDelegate->setDelimiter(QLatin1String(" "));
itemDelegate->setAnnotationRole(QmlOutlineModel::AnnotationRole);
treeView->setItemDelegateForColumn(0, itemDelegate);
treeView->header()->hide();
treeView->setItemsExpandable(false);
treeView->setRootIsDecorated(false);
......
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