| 65 | } |
| 66 | |
| 67 | QString curveKey(const QString& source_name, const QString& x_name = {}, const QString& y_name = {}) { |
| 68 | if (!x_name.isEmpty() || !y_name.isEmpty()) { |
| 69 | return QStringLiteral("xy:") + x_name + QStringLiteral("\n") + y_name; |
| 70 | } |
| 71 | return QStringLiteral("ts:") + source_name; |
| 72 | } |
| 73 | |
| 74 | // The session-scoped curve-color registry (issue #68), reached through the |
| 75 | // SessionManager the widget already holds. Returns nullptr when no session is |
no test coverage detected