feat: graphs now properly sized + port static graphs to c++

This commit is contained in:
2026-11-08 01:28:27 +01:00
parent a7767d2a80
commit d69a6bcafd
17 changed files with 1592 additions and 1257 deletions
@@ -39,6 +39,9 @@ class SparklineItem : public QQuickItem {
Q_PROPERTY(
qreal slideProgress READ slideProgress WRITE setSlideProgress NOTIFY
slideProgressChanged)
Q_PROPERTY(
qreal slideInterval READ slideInterval WRITE setSlideInterval NOTIFY
slideIntervalChanged)
Q_PROPERTY(
int historyLength READ historyLength WRITE setHistoryLength NOTIFY
historyLengthChanged)
@@ -80,6 +83,9 @@ class SparklineItem : public QQuickItem {
[[nodiscard]] qreal slideProgress() const;
void setSlideProgress(qreal progress);
[[nodiscard]] qreal slideInterval() const;
void setSlideInterval(qreal intervalMs);
[[nodiscard]] int historyLength() const;
void setHistoryLength(int length);
@@ -104,6 +110,7 @@ class SparklineItem : public QQuickItem {
void line2FillAlphaChanged();
void maxValueChanged();
void slideProgressChanged();
void slideIntervalChanged();
void historyLengthChanged();
void lineWidthChanged();
void slidingChanged();
@@ -127,6 +134,7 @@ class SparklineItem : public QQuickItem {
qreal m_line2FillAlpha = 0.2;
qreal m_maxValue = 1024.0;
qreal m_slideProgress = 0.0;
qreal m_slideInterval = 0.0;
int m_historyLength = 30;
qreal m_lineWidth = 2.0;
bool m_sliding = true;