* @brief Sets the number of data points for the dashboard plots. */
| 906 | * @brief Sets the number of data points for the dashboard plots. |
| 907 | */ |
| 908 | void 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). |
no test coverage detected