| 401 | } |
| 402 | |
| 403 | QString ContextBrowserHintProvider::textHint(View* view, const KTextEditor::Cursor& cursor) |
| 404 | { |
| 405 | m_plugin->m_mouseHoverCursor = KTextEditor::Cursor(cursor); |
| 406 | if (!view) { |
| 407 | qCWarning(PLUGIN_CONTEXTBROWSER) << "could not cast to view"; |
| 408 | } else { |
| 409 | m_plugin->m_mouseHoverDocument = view->document()->url(); |
| 410 | m_plugin->m_updateViews << view; |
| 411 | } |
| 412 | m_plugin->m_updateTimer->start(1); // triggers updateViews() |
| 413 | |
| 414 | m_plugin->showToolTip(view, cursor); |
| 415 | return QString(); |
| 416 | } |
| 417 | |
| 418 | void ContextBrowserPlugin::stopDelayedBrowsing() |
| 419 | { |