MCPcopy Create free account
hub / github.com/KDE/labplot / sampleSizeChanged

Method sampleSizeChanged

src/frontend/dockwidgets/LiveDataDock.cpp:351–358  ·  view source on GitHub ↗

! * \brief Modifies the sample size of the live data source or MQTTClient object * \param sampleSize */

Source from the content-addressed store, hash-verified

349 * \param sampleSize
350 */
351void LiveDataDock::sampleSizeChanged(int sampleSize) {
352 if (m_liveDataSource)
353 m_liveDataSource->setSampleSize(sampleSize);
354#ifdef HAVE_MQTT
355 else if (m_mqttClient)
356 m_mqttClient->setSampleSize(sampleSize);
357#endif
358}
359
360/*!
361 * \brief Updates the live data source now

Callers

nothing calls this directly

Calls 1

setSampleSizeMethod · 0.45

Tested by

no test coverage detected