MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setFrameDetection

Method setFrameDetection

app/src/DataModel/ProjectModel.cpp:2311–2323  ·  view source on GitHub ↗

* @brief Sets the frame detection strategy. */

Source from the content-addressed store, hash-verified

2309 * @brief Sets the frame detection strategy.
2310 */
2311void 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

Callers 1

frameParserConfigureMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected