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

@@ -30,6 +30,8 @@
#ifndef QMLJSEDITORDOCUMENT_H
#define QMLJSEDITORDOCUMENT_H
#include "qmljseditor_global.h"
#include <qmljs/qmljsdocument.h>
#include <qmljstools/qmljssemanticinfo.h>
#include <texteditor/basetextdocument.h>
@@ -37,12 +39,13 @@
#include <QTextLayout>
namespace QmlJSEditor {
namespace Internal {
namespace Internal {
class QmlJSEditorDocumentPrivate;
class QmlOutlineModel;
} // Internal
class QmlJSEditorDocument : public TextEditor::BaseTextDocument
class QMLJSEDITOR_EXPORT QmlJSEditorDocument : public TextEditor::BaseTextDocument
{
Q_OBJECT
public:
@@ -65,10 +68,9 @@ protected:
private:
friend class QmlJSEditorDocumentPrivate; // sending signals
QmlJSEditorDocumentPrivate *m_d;
Internal::QmlJSEditorDocumentPrivate *m_d;
};
} // Internal
} // QmlJSEditor
#endif // QMLJSEDITORDOCUMENT_H