| 578 | } |
| 579 | |
| 580 | std::vector<QString> CurveTreeView::selectedCurveNames() const { |
| 581 | std::vector<QString> names; |
| 582 | for (auto* item : selectedItems()) { |
| 583 | if (isValueOnlyItem(item)) { |
| 584 | continue; // string fields are not draggable curves |
| 585 | } |
| 586 | const QString full = item->data(kNameColumn, Qt::UserRole).toString(); |
| 587 | if (!full.isEmpty()) { |
| 588 | names.push_back(full); |
| 589 | } |
| 590 | } |
| 591 | normalizeCurveNames(names); |
| 592 | return names; |
| 593 | } |
| 594 | |
| 595 | std::vector<QString> CurveTreeView::selectedCurveNamesRecursive() const { |
| 596 | std::vector<QString> names; |