diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index f204b44862b22403689851d0cc00c36ffdb96f32..a1e155a376b3225641a33712a3f9555321ea317e 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1821,8 +1821,6 @@ void DebuggerPluginPrivate::runScheduled() void DebuggerPluginPrivate::editorOpened(IEditor *editor) { - if (!isEditorDebuggable(editor)) - return; ITextEditor *textEditor = qobject_cast<ITextEditor *>(editor); if (!textEditor) return; @@ -1843,9 +1841,6 @@ void DebuggerPluginPrivate::updateBreakMenuItem(IEditor *editor) void DebuggerPluginPrivate::requestContextMenu(ITextEditor *editor, int lineNumber, QMenu *menu) { - if (!isEditorDebuggable(editor)) - return; - BreakpointMenuContextData args; args.lineNumber = lineNumber; bool contextUsable = true; diff --git a/src/plugins/debugger/debuggertooltipmanager.cpp b/src/plugins/debugger/debuggertooltipmanager.cpp index 05185aeb604f4bc960e0c70e9f25eb20a0176088..90a4da7d810b4f858ca1f854b9ca45594564fb40 100644 --- a/src/plugins/debugger/debuggertooltipmanager.cpp +++ b/src/plugins/debugger/debuggertooltipmanager.cpp @@ -220,7 +220,7 @@ public: DebuggerToolTipEditor::DebuggerToolTipEditor(IEditor *ie) : textEditor(0), baseTextEditor(0), document(0) { - if (ie && ie->document() && isEditorDebuggable(ie)) { + if (ie && ie->document()) { if (ITextEditor *te = qobject_cast<ITextEditor *>(ie)) { if (BaseTextEditorWidget *pe = qobject_cast<BaseTextEditorWidget *>(ie->widget())) { textEditor = te; @@ -1435,7 +1435,7 @@ void DebuggerToolTipManager::slotTooltipOverrideRequested(ITextEditor *editor, break; // Avoid flicker. DebuggerCore *core = debuggerCore(); - if (!isEditorDebuggable(editor) || !core->boolSetting(UseToolTipsInMainEditor)) + if (!core->boolSetting(UseToolTipsInMainEditor)) break; currentEngine = core->currentEngine(); diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp index a3df9c3bbc66cd67824f0662797469e2d8ca0f9b..ad079eb27a5e5e0b7ac15a9f7fdf86c28c5745bc 100644 --- a/src/plugins/debugger/watchutils.cpp +++ b/src/plugins/debugger/watchutils.cpp @@ -145,16 +145,6 @@ QDebug operator<<(QDebug d, const Scope &scope) namespace Debugger { namespace Internal { -bool isEditorDebuggable(Core::IEditor *editor) -{ - // Only blacklist Qml. Whitelisting would fail on C++ code in files - // with strange names, more harm would be done this way. - // IDocument *file = editor->document(); - // return !(file && file->mimeType() == "application/x-qml"); - // Nowadays, even Qml is debuggable. - return editor; -} - QByteArray dotEscape(QByteArray str) { str.replace(' ', '.'); diff --git a/src/plugins/debugger/watchutils.h b/src/plugins/debugger/watchutils.h index 11d3f0566a024932ff9601d6e33a170568695f7f..aef4ad1b42fc8a1504364119926c40c8ecdebc86 100644 --- a/src/plugins/debugger/watchutils.h +++ b/src/plugins/debugger/watchutils.h @@ -51,7 +51,6 @@ namespace Internal { class WatchData; class GdbMi; -bool isEditorDebuggable(Core::IEditor *editor); QByteArray dotEscape(QByteArray str); QString currentTime(); bool isSkippableFunction(const QString &funcName, const QString &fileName);