QmlJSEditor: Rename QmlJSEditorEditable into QmlJSEditor

Change-Id: I710817ffd7bdf87aa6c0fed0f1f3cd4ea842fd01
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2013-06-03 19:31:32 +02:00
parent e40308ab1b
commit 67c3fed2c0
17 changed files with 107 additions and 58 deletions

View File

@@ -43,15 +43,15 @@
namespace QmlJSEditor {
QmlJSEditorEditable::QmlJSEditorEditable(QmlJSTextEditorWidget *editor)
QmlJSEditor::QmlJSEditor(QmlJSTextEditorWidget *editor)
: BaseTextEditor(editor)
{
m_context.add(QmlJSEditor::Constants::C_QMLJSEDITOR_ID);
m_context.add(Constants::C_QMLJSEDITOR_ID);
m_context.add(TextEditor::Constants::C_TEXTEDITOR);
m_context.add(ProjectExplorer::Constants::LANG_QMLJS);
}
bool QmlJSEditorEditable::isDesignModePreferred() const
bool QmlJSEditor::isDesignModePreferred() const
{
// stay in design mode if we are there
Core::IMode *mode = Core::ModeManager::currentMode();
@@ -60,14 +60,14 @@ bool QmlJSEditorEditable::isDesignModePreferred() const
return false;
}
void QmlJSEditorEditable::setTextCodec(QTextCodec *codec, TextCodecReason reason)
void QmlJSEditor::setTextCodec(QTextCodec *codec, TextCodecReason reason)
{
if (reason != TextCodecOtherReason) // qml is defined to be utf8
return;
editorWidget()->setTextCodec(codec);
}
const Utils::CommentDefinition *QmlJSEditorEditable::commentDefinition() const
const Utils::CommentDefinition *QmlJSEditor::commentDefinition() const
{
return &m_commentDefinition;
}