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:
@@ -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;
|
||||
|
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user