* @brief Clears time-series plot buffers without rebuilding widgets or actions. */
| 75 | * @brief Clears time-series plot buffers without rebuilding widgets or actions. |
| 76 | */ |
| 77 | static bool coreClearPlots(QString& errorMsgOut) |
| 78 | { |
| 79 | try { |
| 80 | UI::Dashboard::instance().clearPlotData(); |
| 81 | } catch (const std::exception& e) { |
| 82 | errorMsgOut = QString::fromUtf8(e.what()); |
| 83 | } catch (...) { |
| 84 | errorMsgOut = QStringLiteral("unknown exception"); |
| 85 | } |
| 86 | |
| 87 | return errorMsgOut.isEmpty(); |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * @brief Sets the dashboard plot horizon (sample count). |
no test coverage detected