| 51 | } |
| 52 | |
| 53 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected