forked from qt-creator/qt-creator
Added automatic language switching option to debugger settings
Additionally, hiding of debugger menu entries was done as most of them are irrelevant for QML debugging.
This commit is contained in:
@@ -466,10 +466,6 @@ void DebuggerManager::init()
|
||||
connect(this, SIGNAL(emitShowOutput(int, QString)),
|
||||
d->m_outputWindow, SLOT(showOutput(int, QString)), Qt::QueuedConnection);
|
||||
|
||||
// UI Switcher
|
||||
connect(DebuggerUISwitcher::instance(), SIGNAL(languageChanged(QString)),
|
||||
this, SLOT(languageChanged(QString)));
|
||||
|
||||
// Tooltip
|
||||
//QTreeView *tooltipView = qobject_cast<QTreeView *>(d->m_tooltipWindow);
|
||||
//tooltipView->setModel(d->m_watchHandler->model(TooltipsWatch));
|
||||
@@ -1929,14 +1925,6 @@ void DebuggerManager::fontSettingsChanged(const TextEditor::FontSettings &settin
|
||||
changeFontSize(d->m_threadsWindow, size);
|
||||
}
|
||||
|
||||
// only update necessary menu items on language change
|
||||
void DebuggerManager::languageChanged(const QString &debuggerLanguage)
|
||||
{
|
||||
const bool debuggerIsCPP = (debuggerLanguage == Constants::LANG_CPP);
|
||||
d->m_actions.reverseDirectionAction->setEnabled(debuggerIsCPP);
|
||||
theDebuggerAction(OperateByInstruction)->setEnabled(debuggerIsCPP);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// AbstractDebuggerEngine
|
||||
|
||||
Reference in New Issue
Block a user