MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / widgetIsInLayout

Function widgetIsInLayout

lib/macro/macro-segment-list.cpp:379–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379static bool widgetIsInLayout(QWidget *w, QLayout *l)
380{
381 if (w == nullptr) {
382 return false;
383 }
384 for (int i = 0; i < l->count(); ++i) {
385 auto item = l->itemAt(i);
386 if (!item) {
387 continue;
388 }
389 if (item->widget() == w) {
390 return true;
391 }
392 }
393 return false;
394}
395
396void MacroSegmentList::dragMoveEvent(QDragMoveEvent *event)
397{

Callers 2

dragMoveEventMethod · 0.85
dropEventMethod · 0.85

Calls 1

countMethod · 0.80

Tested by

no test coverage detected