forked from qt-creator/qt-creator
core: make context and widget IContext data members
This commit is contained in:
@@ -748,11 +748,6 @@ bool QmlJSEditorEditable::open(const QString &fileName)
|
||||
return b;
|
||||
}
|
||||
|
||||
Core::Context QmlJSEditorEditable::context() const
|
||||
{
|
||||
return m_context;
|
||||
}
|
||||
|
||||
void QmlJSTextEditorWidget::updateDocument()
|
||||
{
|
||||
m_updateDocumentTimer->start(UPDATE_DOCUMENT_DEFAULT_INTERVAL);
|
||||
|
||||
@@ -46,7 +46,6 @@ class QMLJSEDITOR_EXPORT QmlJSEditorEditable : public TextEditor::BaseTextEditor
|
||||
|
||||
public:
|
||||
explicit QmlJSEditorEditable(QmlJSTextEditorWidget *);
|
||||
Core::Context context() const;
|
||||
|
||||
bool duplicateSupported() const { return true; }
|
||||
Core::IEditor *duplicate(QWidget *parent);
|
||||
@@ -55,10 +54,6 @@ public:
|
||||
virtual bool open(const QString & fileName);
|
||||
virtual QString preferredModeType() const;
|
||||
void setTextCodec(QTextCodec *codec, TextCodecReason = TextCodecOtherReason);
|
||||
|
||||
|
||||
private:
|
||||
Core::Context m_context;
|
||||
};
|
||||
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
Reference in New Issue
Block a user