Playing with colors.
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user