forked from qt-creator/qt-creator
QmlJSEditor: Move semantic info updating to document
Change-Id: I804dbd887af1786e7554ec79f94fc8e59db1de5b Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#ifndef QMLJSEDITORDOCUMENT_H
|
||||
#define QMLJSEDITORDOCUMENT_H
|
||||
|
||||
#include <qmljs/qmljsdocument.h>
|
||||
#include <qmljstools/qmljssemanticinfo.h>
|
||||
#include <texteditor/basetextdocument.h>
|
||||
|
||||
namespace QmlJSEditor {
|
||||
@@ -44,7 +46,15 @@ public:
|
||||
QmlJSEditorDocument();
|
||||
~QmlJSEditorDocument();
|
||||
|
||||
const QmlJSTools::SemanticInfo &semanticInfo() const;
|
||||
bool isSemanticInfoOutdated() const;
|
||||
|
||||
signals:
|
||||
void updateCodeWarnings(QmlJS::Document::Ptr doc);
|
||||
void semanticInfoUpdated(const QmlJSTools::SemanticInfo &semanticInfo);
|
||||
|
||||
private:
|
||||
friend class QmlJSEditorDocumentPrivate; // sending signals
|
||||
QmlJSEditorDocumentPrivate *m_d;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user