forked from qt-creator/qt-creator
QmlJSEditor: Use a BaseTextEditorFactory for creation
Change-Id: I37e81cf3eda57780c893f4e8d7f2c5c6adf75b55 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "qmljshoverhandler.h"
|
||||
#include "qmljseditor.h"
|
||||
#include "qmljseditorconstants.h"
|
||||
#include "qmljseditordocument.h"
|
||||
#include "qmlexpressionundercursor.h"
|
||||
|
||||
@@ -97,10 +98,7 @@ HoverHandler::HoverHandler(QObject *parent) : BaseHoverHandler(parent), m_modelM
|
||||
|
||||
bool HoverHandler::acceptEditor(IEditor *editor)
|
||||
{
|
||||
QmlJSEditor *qmlEditor = qobject_cast<QmlJSEditor *>(editor);
|
||||
if (qmlEditor)
|
||||
return true;
|
||||
return false;
|
||||
return editor->context().contains(Constants::C_QMLJSEDITOR_ID);
|
||||
}
|
||||
|
||||
static inline QString getModuleName(const ScopeChain &scopeChain, const Document::Ptr &qmlDocument,
|
||||
|
||||
Reference in New Issue
Block a user