Remember QPersistentModelIndex rather than row for hover effect.

This commit is contained in:
Teo Mrnjavac 2015-12-10 18:05:07 +01:00
parent 36f30b1ede
commit c2cb367753
2 changed files with 10 additions and 9 deletions

View file

@ -72,7 +72,7 @@ private:
QModelIndex index;
};
inline QPair< QVector< Item >, qreal > computeItemsVector( const QModelIndex& parent ) const;
int m_hoveredRow;
QPersistentModelIndex m_hoveredIndex;
};
#endif /* PARTITIONPREVIEW_H */