QmlOutline: Move QmlOutlineTreeView into it's own file

This commit is contained in:
Kai Koehne
2010-08-10 11:59:02 +02:00
parent 7a1c1a373a
commit 7fac110d75
5 changed files with 45 additions and 22 deletions

View File

@@ -0,0 +1,20 @@
#include "qmljsoutlinetreeview.h"
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);
}
} // namespace Internal
} // namespace QmlJSEditor