forked from qt-creator/qt-creator
Debugger: Reduce tooltip flicker.
Move tooltip-request handling from DebuggerPlugin into DebuggerToolTipManager. Request tooltip only if position changed and close standard tooltip on success.
This commit is contained in:
@@ -148,6 +148,16 @@ 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.
|
||||
// IFile *file = editor->file();
|
||||
// return !(file && file->mimeType() == "application/x-qml");
|
||||
// Nowadays, even Qml is debuggable.
|
||||
return editor;
|
||||
}
|
||||
|
||||
QByteArray dotEscape(QByteArray str)
|
||||
{
|
||||
str.replace(' ', '.');
|
||||
|
||||
Reference in New Issue
Block a user