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

Method setPreviewMode

app/src/UI/Widgets/Painter.cpp:251–265  ·  view source on GitHub ↗

* @brief Switches between live-dashboard mode and synthetic preview mode. */

Source from the content-addressed store, hash-verified

249 * @brief Switches between live-dashboard mode and synthetic preview mode.
250 */
251void Widgets::Painter::setPreviewMode(bool enabled)
252{
253 if (m_previewMode == enabled)
254 return;
255
256 m_previewMode = enabled;
257 if (m_previewMode) {
258 if (m_previewGroup.title.isEmpty())
259 m_previewGroup.title = QStringLiteral("Preview");
260
261 m_bridge->setGroup(&m_previewGroup);
262 } else {
263 m_bridge->setGroup(nullptr);
264 }
265}
266
267/**
268 * @brief Decodes a QVariantList of alarm-band maps into a typed AlarmBand vector.

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.80
setGroupMethod · 0.80

Tested by

no test coverage detected