forked from qt-creator/qt-creator
context-based hiding/showing of debug menu entries
the previous implementation relied on poking around with setVisible of the menu actions. Now, command attribute CA_Hide is used instead for the necessary entries. Reviewed-by: hjk
This commit is contained in:
@@ -103,11 +103,13 @@ bool QmlInspectorPlugin::initialize(const QStringList &arguments, QString *error
|
||||
|
||||
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
|
||||
Debugger::DebuggerUISwitcher *uiSwitcher = pluginManager->getObject<Debugger::DebuggerUISwitcher>();
|
||||
uiSwitcher->addLanguage(Qml::Constants::LANG_QML);
|
||||
|
||||
m_inspector = new QmlInspector;
|
||||
addObject(m_inspector);
|
||||
Core::ICore::instance()->addContextObject(m_inspector->context());
|
||||
uiSwitcher->addLanguage(Qml::Constants::LANG_QML, m_inspector->context()->context());
|
||||
m_inspector->createDockWidgets();
|
||||
|
||||
|
||||
connect(m_connectionTimer, SIGNAL(timeout()), SLOT(pollInspector()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user