forked from qt-creator/qt-creator
Removed unneeded QML scope classes.
This commit is contained in:
@@ -26,8 +26,7 @@ HEADERS += qmleditor.h \
|
|||||||
qmllookupcontext.h \
|
qmllookupcontext.h \
|
||||||
qmlresolveexpression.h \
|
qmlresolveexpression.h \
|
||||||
qmlsymbol.h \
|
qmlsymbol.h \
|
||||||
qmlfilewizard.h \
|
qmlfilewizard.h
|
||||||
qmlscope.h
|
|
||||||
SOURCES += qmleditor.cpp \
|
SOURCES += qmleditor.cpp \
|
||||||
qmleditorfactory.cpp \
|
qmleditorfactory.cpp \
|
||||||
qmleditorplugin.cpp \
|
qmleditorplugin.cpp \
|
||||||
@@ -44,6 +43,5 @@ SOURCES += qmleditor.cpp \
|
|||||||
qmllookupcontext.cpp \
|
qmllookupcontext.cpp \
|
||||||
qmlresolveexpression.cpp \
|
qmlresolveexpression.cpp \
|
||||||
qmlsymbol.cpp \
|
qmlsymbol.cpp \
|
||||||
qmlfilewizard.cpp \
|
qmlfilewizard.cpp
|
||||||
qmlscope.cpp
|
|
||||||
RESOURCES += qmleditor.qrc
|
RESOURCES += qmleditor.qrc
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
#include "qmlscope.h"
|
|
||||||
|
|
||||||
using namespace QmlEditor;
|
|
||||||
using namespace QmlEditor::Internal;
|
|
||||||
|
|
||||||
Scope::Scope(Scope *parentScope):
|
|
||||||
_parentScope(parentScope)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Scope::~Scope()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Scope::isJSScope()
|
|
||||||
{ return asJSScope() != 0; }
|
|
||||||
|
|
||||||
bool Scope::isQmlScope()
|
|
||||||
{ return asQmlScope() != 0; }
|
|
||||||
|
|
||||||
JSScope *Scope::asJSScope()
|
|
||||||
{ return 0; }
|
|
||||||
|
|
||||||
QmlScope *Scope::asQmlScope()
|
|
||||||
{ return 0; }
|
|
||||||
|
|
||||||
QmlScope::QmlScope(QmlScope *parentScope):
|
|
||||||
Scope(parentScope)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
JSScope::JSScope(Scope *parentScope):
|
|
||||||
Scope(parentScope)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
#ifndef QMLSCOPE_H
|
|
||||||
#define QMLSCOPE_H
|
|
||||||
|
|
||||||
namespace QmlEditor {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QmlScope;
|
|
||||||
class JSScope;
|
|
||||||
|
|
||||||
class Scope
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
Scope(Scope *parentScope);
|
|
||||||
virtual ~Scope();
|
|
||||||
|
|
||||||
bool isQmlScope();
|
|
||||||
bool isJSScope();
|
|
||||||
|
|
||||||
virtual QmlScope *asQmlScope();
|
|
||||||
virtual JSScope *asJSScope();
|
|
||||||
|
|
||||||
private:
|
|
||||||
Scope *_parentScope;
|
|
||||||
};
|
|
||||||
|
|
||||||
class QmlScope: public Scope
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
QmlScope(QmlScope *parentScope);
|
|
||||||
};
|
|
||||||
|
|
||||||
class JSScope: public Scope
|
|
||||||
{
|
|
||||||
JSScope(Scope *parentScope);
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace QmlEditor
|
|
||||||
|
|
||||||
#endif // QMLSCOPE_H
|
|
||||||
Reference in New Issue
Block a user