debugger/basehoverhandler: introduce tooltipOverrideRequested and use it

Reviewed-by: con
Task-number: QTCREATOR-201
This commit is contained in:
hjk
2011-01-04 13:58:05 +01:00
parent b61845800a
commit d909d8ba64
4 changed files with 15 additions and 13 deletions

View File

@@ -2533,7 +2533,11 @@ bool BaseTextEditor::viewportEvent(QEvent *event)
QPoint cursorPos = mapToGlobal(cursorRect(c).bottomRight() + QPoint(1,1));
cursorPos.setX(cursorPos.x() + d->m_extraArea->width());
emit editableInterface()->tooltipRequested(editableInterface(), cursorPos, c.position());
bool handled = false;
BaseTextEditorEditable *editable = editableInterface();
emit editable->tooltipOverrideRequested(editable, cursorPos, c.position(), &handled);
if (!handled)
emit editable->tooltipRequested(editable, cursorPos, c.position());
return true;
}
return QPlainTextEdit::viewportEvent(event);