MCPcopy Create free account
hub / github.com/IgKh/katvan / triggerToolTipByKeyboard

Method triggerToolTipByKeyboard

core/katvan_editor.cpp:524–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void Editor::triggerToolTipByKeyboard()
525{
526 QTextCursor cursor = textCursor();
527
528 QString tooltip = predefinedTooltipAtPosition(cursor.position());
529 if (!tooltip.isEmpty()) {
530 popupToolTip(EditorToolTip::BY_KEYBOARD, cursor.position(), tooltip);
531 return;
532 }
533
534 d_pendingTooltip = std::make_pair(cursor, EditorToolTip::BY_KEYBOARD);
535 Q_EMIT toolTipRequested(cursor.blockNumber(), cursor.positionInBlock());
536}
537
538void Editor::handleToolTipEvent(QHelpEvent* event)
539{

Callers

nothing calls this directly

Calls 1

positionMethod · 0.80

Tested by

no test coverage detected