| 377 | } |
| 378 | |
| 379 | static 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 | |
| 396 | void MacroSegmentList::dragMoveEvent(QDragMoveEvent *event) |
| 397 | { |
no test coverage detected