forked from qt-creator/qt-creator
some action cleanup for the qml editor
done with Erik Verbruggen
This commit is contained in:
@@ -92,13 +92,10 @@ bool QmlEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
|
||||
m_modelManager = new QmlModelManager(this);
|
||||
addAutoReleasedObject(m_modelManager);
|
||||
|
||||
m_scriptcontext << core->uniqueIDManager()->uniqueIdentifier(QmlEditor::Constants::C_QMLEDITOR);
|
||||
m_context = m_scriptcontext;
|
||||
m_context << core->uniqueIDManager()->uniqueIdentifier(TextEditor::Constants::C_TEXTEDITOR);
|
||||
QList<int> context;
|
||||
context<< core->uniqueIDManager()->uniqueIdentifier(QmlEditor::Constants::C_QMLEDITOR);
|
||||
|
||||
registerActions();
|
||||
|
||||
m_editor = new QmlEditorFactory(m_context, this);
|
||||
m_editor = new QmlEditorFactory(this);
|
||||
addObject(m_editor);
|
||||
|
||||
Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard);
|
||||
@@ -150,8 +147,4 @@ void QmlEditorPlugin::initializeEditor(QmlEditor::Internal::ScriptEditor *editor
|
||||
TextEditor::Internal::CompletionSupport::instance(), SLOT(autoComplete(ITextEditable*, bool)));
|
||||
}
|
||||
|
||||
void QmlEditorPlugin::registerActions()
|
||||
{
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(QmlEditorPlugin)
|
||||
|
||||
Reference in New Issue
Block a user