forked from qt-creator/qt-creator
Qml Outline: Support rearrangement of the items via drag&drop
This commit is contained in:
@@ -25,6 +25,11 @@ QmlJSOutlineTreeView::QmlJSOutlineTreeView(QWidget *parent) :
|
||||
// see also CppOutlineTreeView
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
setExpandsOnDoubleClick(false);
|
||||
|
||||
setDragEnabled(true);
|
||||
viewport()->setAcceptDrops(true);
|
||||
setDropIndicatorShown(true);
|
||||
setDragDropMode(InternalMove);
|
||||
}
|
||||
|
||||
QmlJSOutlineFilterModel::QmlJSOutlineFilterModel(QObject *parent) :
|
||||
|
||||
Reference in New Issue
Block a user