* @brief Registers CSV column names with Quick Plot (excluding the timestamp). */
| 612 | * @brief Registers CSV column names with Quick Plot (excluding the timestamp). |
| 613 | */ |
| 614 | void CSV::Player::sendHeaderFrame() |
| 615 | { |
| 616 | if (m_csvData.isEmpty()) |
| 617 | return; |
| 618 | |
| 619 | const auto& headerRow = m_csvData.first(); |
| 620 | if (headerRow.size() <= 1) |
| 621 | return; |
| 622 | |
| 623 | if (AppState::instance().operationMode() == SerialStudio::ProjectFile) { |
| 624 | buildReplayLayout(); |
| 625 | if (m_multiSource) |
| 626 | return; |
| 627 | } |
| 628 | |
| 629 | QStringList headers; |
| 630 | for (int i = 1; i < headerRow.size(); ++i) |
| 631 | headers.append(headerRow[i]); |
| 632 | |
| 633 | DataModel::FrameBuilder::instance().registerQuickPlotHeaders(headers); |
| 634 | } |
| 635 | |
| 636 | /** |
| 637 | * @brief Prompts the user to pick a date/time column or a manual row interval. |
nothing calls this directly
no test coverage detected