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

Method showTooltip

kdevplatform/shell/workingsets/workingsettoolbutton.cpp:138–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void WorkingSetToolButton::showTooltip(const QPoint& globalPos)
139{
140 Q_ASSERT(m_set);
141 static WorkingSetToolButton* oldTooltipButton;
142
143 WorkingSetController* controller = Core::self()->workingSetControllerInternal();
144
145 if(controller->tooltip() && oldTooltipButton == this)
146 return;
147
148 oldTooltipButton = this;
149
150 controller->showToolTip(m_set, globalPos + QPoint(10, 20));
151
152 QRect extended(parentWidget()->mapToGlobal(geometry().topLeft()),
153 parentWidget()->mapToGlobal(geometry().bottomRight()));
154 controller->tooltip()->setHandleRect(extended);
155}
156
157void WorkingSetToolButton::buttonTriggered()
158{

Callers

nothing calls this directly

Calls 5

tooltipMethod · 0.80
setHandleRectMethod · 0.80
QPointClass · 0.50
showToolTipMethod · 0.45

Tested by

no test coverage detected