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

Method insideThis

kdevplatform/util/activetooltip.cpp:245–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245bool ActiveToolTip::insideThis(QObject* object)
246{
247 Q_D(ActiveToolTip);
248
249 while (object) {
250 if (qobject_cast<QMenu*>(object)) {
251 return true;
252 }
253
254 if (object == this || object == ( QObject* )this->windowHandle() || d->friendWidgets_.contains(object)) {
255 return true;
256 }
257 object = object->parent();
258 }
259
260 // If the object clicked is inside a QQuickWidget, its parent is null even
261 // if it is part of a tool-tip. This check ensures that a tool-tip is never
262 // closed while the mouse is in it
263 return underMouse();
264}
265
266void ActiveToolTip::showEvent(QShowEvent*)
267{

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected