From c7e8b51d37700499536e3ab333190abd127ea0f7 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 25 Jun 2010 12:56:16 +0200 Subject: core: use a class derived from QList instead of a QList for Core::Context A mostly mechanical change. Reviewed-By: con --- src/plugins/qmljseditor/qmljseditorplugin.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/plugins/qmljseditor/qmljseditorplugin.cpp') diff --git a/src/plugins/qmljseditor/qmljseditorplugin.cpp b/src/plugins/qmljseditor/qmljseditorplugin.cpp index 3efbfe7115..2bf79f5a55 100644 --- a/src/plugins/qmljseditor/qmljseditorplugin.cpp +++ b/src/plugins/qmljseditor/qmljseditorplugin.cpp @@ -110,7 +110,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e m_modelManager = new ModelManager(this); addAutoReleasedObject(m_modelManager); - QList context; + Core::Context context; context << core->uniqueIDManager()->uniqueIdentifier(QmlJSEditor::Constants::C_QMLJSEDITOR_ID) << core->uniqueIDManager()->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU); @@ -140,8 +140,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e mtools->addMenu(menuQtQuick); m_actionPreview = new QAction("&Preview", this); - QList toolsMenuContext = QList() - << core->uniqueIDManager()->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU); + Core::Context toolsMenuContext(core->uniqueIDManager()->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU)); Core::Command *cmd = addToolAction(m_actionPreview, am, toolsMenuContext, QLatin1String("QtQuick.Preview"), menuQtQuick, tr("Ctrl+Alt+R")); connect(cmd->action(), SIGNAL(triggered()), SLOT(openPreview())); @@ -220,7 +219,7 @@ void QmlJSEditorPlugin::followSymbolUnderCursor() } Core::Command *QmlJSEditorPlugin::addToolAction(QAction *a, Core::ActionManager *am, - const QList &context, const QString &name, + Core::Context &context, const QString &name, Core::ActionContainer *c1, const QString &keySequence) { Core::Command *command = am->registerAction(a, name, context); -- cgit v1.2.1