#include "qmljsoutlinetreeview.h" #include "qmloutlinemodel.h" #include namespace QmlJSEditor { namespace Internal { QmlJSOutlineTreeView::QmlJSOutlineTreeView(QWidget *parent) : Utils::NavigationTreeView(parent) { // see also CppOutlineTreeView setFocusPolicy(Qt::NoFocus); setExpandsOnDoubleClick(false); setDragEnabled(true); viewport()->setAcceptDrops(true); setDropIndicatorShown(true); setDragDropMode(InternalMove); setRootIsDecorated(false); Utils::AnnotatedItemDelegate *itemDelegate = new Utils::AnnotatedItemDelegate(this); itemDelegate->setDelimiter(QLatin1String(" ")); itemDelegate->setAnnotationRole(QmlOutlineModel::AnnotationRole); setItemDelegateForColumn(0, itemDelegate); } } // namespace Internal } // namespace QmlJSEditor