Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
7fac110d
Commit
7fac110d
authored
Aug 10, 2010
by
Kai Koehne
Browse files
QmlOutline: Move QmlOutlineTreeView into it's own file
parent
7a1c1a37
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljseditor.pro
View file @
7fac110d
...
...
@@ -27,7 +27,8 @@ HEADERS += \
qmljsoutline
.
h
\
qmloutlinemodel
.
h
\
qmltaskmanager
.
h
\
qmljseditorcodeformatter
.
h
qmljseditorcodeformatter
.
h
\
qmljsoutlinetreeview
.
h
SOURCES
+=
\
qmljscodecompletion
.
cpp
\
...
...
@@ -48,7 +49,8 @@ SOURCES += \
qmloutlinemodel
.
cpp
\
qmltaskmanager
.
cpp
\
qmljsquickfixes
.
cpp
\
qmljseditorcodeformatter
.
cpp
qmljseditorcodeformatter
.
cpp
\
qmljsoutlinetreeview
.
cpp
RESOURCES
+=
qmljseditor
.
qrc
OTHER_FILES
+=
QmlJSEditor
.
pluginspec
QmlJSEditor
.
mimetypes
.
xml
src/plugins/qmljseditor/qmljsoutline.cpp
View file @
7fac110d
#include
"qmljsoutline.h"
#include
"qmloutlinemodel.h"
#include
"qmljsoutlinetreeview.h"
#include
<coreplugin/icore.h>
#include
<coreplugin/ifile.h>
...
...
@@ -19,18 +20,6 @@ enum {
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
);
}
QmlJSOutlineFilterModel
::
QmlJSOutlineFilterModel
(
QObject
*
parent
)
:
QSortFilterProxyModel
(
parent
)
...
...
src/plugins/qmljseditor/qmljsoutline.h
View file @
7fac110d
...
...
@@ -3,10 +3,8 @@
#include
"qmljseditor.h"
#include
<utils/navigationtreeview.h>
#include
<texteditor/ioutlinewidget.h>
#include
<QtGui/QTreeView>
#include
<QtGui/QSortFilterProxyModel>
namespace
Core
{
...
...
@@ -20,12 +18,7 @@ class Editor;
namespace
QmlJSEditor
{
namespace
Internal
{
class
QmlJSOutlineTreeView
:
public
Utils
::
NavigationTreeView
{
Q_OBJECT
public:
QmlJSOutlineTreeView
(
QWidget
*
parent
=
0
);
};
class
QmlJSOutlineTreeView
;
class
QmlJSOutlineFilterModel
:
public
QSortFilterProxyModel
{
...
...
src/plugins/qmljseditor/qmljsoutlinetreeview.cpp
0 → 100644
View file @
7fac110d
#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
src/plugins/qmljseditor/qmljsoutlinetreeview.h
0 → 100644
View file @
7fac110d
#ifndef QMLJSOUTLINETREEVIEW_H
#define QMLJSOUTLINETREEVIEW_H
#include
<utils/navigationtreeview.h>
namespace
QmlJSEditor
{
namespace
Internal
{
class
QmlJSOutlineTreeView
:
public
Utils
::
NavigationTreeView
{
Q_OBJECT
public:
QmlJSOutlineTreeView
(
QWidget
*
parent
=
0
);
};
}
// namespace Internal
}
// namespace QmlJSEditor
#endif // QMLJSOUTLINETREEVIEW_H
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment