forked from qt-creator/qt-creator
Merge branch '2.3'
Conflicts: src/plugins/debugger/qml/qmlengine.cpp Change-Id: I46509f0c187b71bbaed7b2118a160914f8250ca4
This commit is contained in:
@@ -1370,6 +1370,10 @@ void QmlJSTextEditorWidget::contextMenuEvent(QContextMenuEvent *e)
|
||||
menu->addAction(action);
|
||||
if (action->objectName() == QmlJSEditor::Constants::M_REFACTORING_MENU_INSERTION_POINT)
|
||||
menu->addMenu(refactoringMenu);
|
||||
if (action->objectName() == QmlJSEditor::Constants::SHOW_QT_QUICK_HELPER) {
|
||||
bool enabled = m_contextPane->isAvailable(editor(), semanticInfo().document, m_semanticInfo.declaringMemberNoProperties(position()));
|
||||
action->setEnabled(enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -265,7 +265,7 @@ ExtensionSystem::IPlugin::ShutdownFlag QmlJSEditorPlugin::aboutToShutdown()
|
||||
|
||||
void QmlJSEditorPlugin::initializeEditor(QmlJSEditor::QmlJSTextEditorWidget *editor)
|
||||
{
|
||||
QTC_ASSERT(m_instance, /**/);
|
||||
QTC_CHECK(m_instance);
|
||||
|
||||
m_actionHandler->setupActions(editor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user