* @brief Sets the frame detection strategy. */
| 2309 | * @brief Sets the frame detection strategy. |
| 2310 | */ |
| 2311 | void DataModel::ProjectModel::setFrameDetection(const SerialStudio::FrameDetection detection) |
| 2312 | { |
| 2313 | if (m_frameDetection == detection) |
| 2314 | return; |
| 2315 | |
| 2316 | m_frameDetection = detection; |
| 2317 | |
| 2318 | if (!m_sources.empty()) |
| 2319 | m_sources[0].frameDetection = static_cast<int>(detection); |
| 2320 | |
| 2321 | setModified(true); |
| 2322 | Q_EMIT frameDetectionChanged(); |
| 2323 | } |
| 2324 | |
| 2325 | //-------------------------------------------------------------------------------------------------- |
| 2326 | // Document loading / import |
no test coverage detected