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

Method showGlobalToolTip

kdevplatform/shell/workingsetcontroller.cpp:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void WorkingSetController::showGlobalToolTip()
186{
187 auto* window = static_cast<KDevelop::MainWindow*>(Core::self()->uiControllerInternal()->activeMainWindow());
188
189 showToolTip(workingSet(window->area()->workingSet()),
190 window->mapToGlobal(window->geometry().topRight()));
191
192 connect(m_hideToolTipTimer, &QTimer::timeout, m_tooltip.data(), &ActiveToolTip::deleteLater);
193 m_hideToolTipTimer->start();
194 connect(m_tooltip.data(), &ActiveToolTip::mouseIn, m_hideToolTipTimer, &QTimer::stop);
195 connect(m_tooltip.data(), &ActiveToolTip::mouseOut, m_hideToolTipTimer, QOverload<>::of(&QTimer::start));
196}
197
198WorkingSetToolTipWidget* WorkingSetController::workingSetToolTip()
199{

Callers

nothing calls this directly

Calls 7

workingSetFunction · 0.85
uiControllerInternalMethod · 0.80
activeMainWindowMethod · 0.45
workingSetMethod · 0.45
areaMethod · 0.45
dataMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected