MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / operateTooltip

Method operateTooltip

widgets/EditorChatButtonHandler.cpp:53–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void EditorChatButtonHandler::operateTooltip(
54 TextEditor::TextEditorWidget *editorWidget, const QPoint &point)
55{
56 if (!editorWidget)
57 return;
58
59 if (!Utils::ToolTip::isVisible()) {
60 m_chatButton = new EditorChatButton(editorWidget);
61 m_buttonHeight = m_chatButton->height();
62
63 QPoint showPoint = point;
64 showPoint.ry() -= m_buttonHeight;
65
66 Utils::ToolTip::show(showPoint, m_chatButton, editorWidget);
67 } else {
68 QPoint showPoint = point;
69 showPoint.ry() -= m_buttonHeight;
70 Utils::ToolTip::move(showPoint);
71 }
72}
73
74} // namespace QodeAssist

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected