Playing with colors.

This commit is contained in:
2025-12-21 23:20:22 +01:00
parent c88c57ad32
commit 42525014f2
18 changed files with 125 additions and 49 deletions

View File

@@ -40,6 +40,7 @@ public:
emit viewUpdateNeeded();
}
void clearAllHighlights();
public slots:
@@ -55,6 +56,7 @@ private:
void updateRow(int row);
QString formatDisplayString(const QModelIndex &index) const;
void paintHighlightRow(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
int _highlightedRow{-1};
qreal _opacity{1.0};
@@ -63,10 +65,9 @@ private:
private:
QHash<int, qreal> m_rowOpacities;
QHash<int, QVariantAnimation*> m_rowAnimations;
};