1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Request item repaint via PlayableItem.

This commit is contained in:
Christian Muehlhaeuser
2013-04-17 04:03:19 +02:00
parent 9554ce6199
commit c0e41809e6
2 changed files with 3 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ public:
void setIsPlaying( bool b ) { m_isPlaying = b; emit dataChanged(); }
bool fetchingMore() const { return m_fetchingMore; }
void setFetchingMore( bool b ) { m_fetchingMore = b; }
void requestRepaint() { emit dataChanged(); }
QString name() const;
QString artistName() const;

View File

@@ -316,7 +316,8 @@ PlaylistItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, con
if ( m_hoveringOver != index )
{
emit updateIndex( m_hoveringOver );
PlayableItem* item = m_model->sourceModel()->itemFromIndex( m_model->mapToSource( index ) );
item->requestRepaint();
m_hoveringOver = index;
emit updateIndex( m_hoveringOver );
}