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

Method setPoints

app/src/UI/Dashboard.cpp:908–927  ·  view source on GitHub ↗

* @brief Sets the number of data points for the dashboard plots. */

Source from the content-addressed store, hash-verified

906 * @brief Sets the number of data points for the dashboard plots.
907 */
908void UI::Dashboard::setPoints(const int points)
909{
910 if (m_points != points) {
911 m_points = points;
912
913 if (AppState::instance().operationMode() != SerialStudio::ProjectFile)
914 m_settings.setValue("Dashboard/Points", m_points);
915
916 auto savedPlotRings = snapshotPlotTimeRings();
917 auto savedMultiplotRings = snapshotMultiplotTimeRings();
918
919 configureLineSeries();
920 configureMultiLineSeries();
921
922 restorePlotTimeRings(savedPlotRings);
923 restoreMultiplotTimeRings(savedMultiplotRings);
924
925 Q_EMIT pointsChanged();
926 }
927}
928
929/**
930 * @brief Drops every pre-resolved hotpath push table (their pointers follow the layout).

Callers 4

setPointCountMethod · 0.80
loadPointCountMethod · 0.80
coreSetPlotPointsFunction · 0.80

Calls 1

operationModeMethod · 0.80

Tested by

no test coverage detected