MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / isContentWidgetOrChild

Function isContentWidgetOrChild

pj_plotting/widget/src/DockWidget.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bool isContentWidgetOrChild(QObject* watched, QWidget* content_widget) {
44 auto* widget = qobject_cast<QWidget*>(watched);
45 return widget != nullptr && content_widget != nullptr &&
46 (widget == content_widget || content_widget->isAncestorOf(widget));
47}
48
49void addActionCategorySeparator(QMenu& menu) {
50 const QList<QAction*> actions = menu.actions();

Callers 1

eventFilterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected