QmlJSEditor: Remove functions from widget that delegate to document

Instead access document directly. Needs to export document.

Change-Id: I8fa86832982d2793ea951e88a5b6e3925b7cd281
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Eike Ziller
2014-02-07 13:45:51 +01:00
parent 9167d4a16c
commit 89a2c4620b
11 changed files with 40 additions and 54 deletions

View File

@@ -66,10 +66,10 @@ namespace AST {
*/
namespace QmlJSEditor {
class QmlJSEditor;
class QmlJSEditorDocument;
class FindReferences;
namespace Internal {
class QmlJSEditorDocument;
class QmlOutlineModel;
} // namespace Internal
@@ -84,12 +84,7 @@ public:
virtual void unCommentSelection();
// redirecting to document
QmlJSTools::SemanticInfo semanticInfo() const;
bool isSemanticInfoOutdated() const;
int editorRevision() const;
QVector<QTextLayout::FormatRange> diagnosticRanges() const;
Internal::QmlOutlineModel *outlineModel() const;
QmlJSEditorDocument *qmlJsEditorDocument() const;
QModelIndex outlineModelIndex();
@@ -145,7 +140,7 @@ private:
QModelIndex indexForPosition(unsigned cursorPosition, const QModelIndex &rootIndex = QModelIndex()) const;
bool hideContextPane();
Internal::QmlJSEditorDocument *m_qmlJsEditorDocument;
QmlJSEditorDocument *m_qmlJsEditorDocument;
QTimer *m_updateUsesTimer; // to wait for multiple text cursor position changes
QTimer *m_updateOutlineIndexTimer;
QTimer *m_contextPaneTimer;