forked from qt-creator/qt-creator
Core::Context: compile hot fix for Windows.
This commit is contained in:
@@ -53,7 +53,6 @@
|
||||
#include <coreplugin/modemanager.h>
|
||||
#include <coreplugin/designmode.h>
|
||||
#include <coreplugin/mimedatabase.h>
|
||||
#include <coreplugin/uniqueidmanager.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <texteditor/basetextdocument.h>
|
||||
#include <texteditor/fontsettings.h>
|
||||
@@ -575,11 +574,9 @@ int SemanticInfo::revision() const
|
||||
QmlJSEditorEditable::QmlJSEditorEditable(QmlJSTextEditor *editor)
|
||||
: BaseTextEditorEditable(editor)
|
||||
{
|
||||
|
||||
Core::UniqueIDManager *uidm = Core::UniqueIDManager::instance();
|
||||
m_context << uidm->uniqueIdentifier(QmlJSEditor::Constants::C_QMLJSEDITOR_ID);
|
||||
m_context << uidm->uniqueIdentifier(TextEditor::Constants::C_TEXTEDITOR);
|
||||
m_context << uidm->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU);
|
||||
m_context.add(QmlJSEditor::Constants::C_QMLJSEDITOR_ID);
|
||||
m_context.add(TextEditor::Constants::C_TEXTEDITOR);
|
||||
m_context.add(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU);
|
||||
}
|
||||
|
||||
// Use preferred mode from Bauhaus settings
|
||||
|
||||
@@ -43,8 +43,7 @@ namespace QmlJSEditor {
|
||||
namespace Internal {
|
||||
|
||||
QmlJSEditorActionHandler::QmlJSEditorActionHandler()
|
||||
: TextEditor::TextEditorActionHandler(QLatin1String(QmlJSEditor::Constants::C_QMLJSEDITOR_ID),
|
||||
Format)
|
||||
: TextEditor::TextEditorActionHandler(QmlJSEditor::Constants::C_QMLJSEDITOR_ID, Format)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -110,9 +110,8 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
|
||||
m_modelManager = new ModelManager(this);
|
||||
addAutoReleasedObject(m_modelManager);
|
||||
|
||||
Core::Context context;
|
||||
context << core->uniqueIDManager()->uniqueIdentifier(QmlJSEditor::Constants::C_QMLJSEDITOR_ID)
|
||||
<< core->uniqueIDManager()->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU);
|
||||
Core::Context context(QmlJSEditor::Constants::C_QMLJSEDITOR_ID,
|
||||
QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU);
|
||||
|
||||
m_editor = new QmlJSEditorFactory(this);
|
||||
addObject(m_editor);
|
||||
@@ -140,7 +139,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
|
||||
mtools->addMenu(menuQtQuick);
|
||||
m_actionPreview = new QAction("&Preview", this);
|
||||
|
||||
Core::Context toolsMenuContext(core->uniqueIDManager()->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU));
|
||||
Core::Context toolsMenuContext(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()));
|
||||
|
||||
Reference in New Issue
Block a user