MCPcopy Create free account
hub / github.com/KDE/kdevelop / textHint

Method textHint

plugins/contextbrowser/contextbrowser.cpp:403–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403QString 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
418void ContextBrowserPlugin::stopDelayedBrowsing()
419{

Callers

nothing calls this directly

Calls 6

CursorClass · 0.50
QStringClass · 0.50
urlMethod · 0.45
documentMethod · 0.45
startMethod · 0.45
showToolTipMethod · 0.45

Tested by

no test coverage detected