mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +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(); }
|
void setIsPlaying( bool b ) { m_isPlaying = b; emit dataChanged(); }
|
||||||
bool fetchingMore() const { return m_fetchingMore; }
|
bool fetchingMore() const { return m_fetchingMore; }
|
||||||
void setFetchingMore( bool b ) { m_fetchingMore = b; }
|
void setFetchingMore( bool b ) { m_fetchingMore = b; }
|
||||||
|
void requestRepaint() { emit dataChanged(); }
|
||||||
|
|
||||||
QString name() const;
|
QString name() const;
|
||||||
QString artistName() const;
|
QString artistName() const;
|
||||||
|
@@ -316,7 +316,8 @@ PlaylistItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, con
|
|||||||
|
|
||||||
if ( m_hoveringOver != index )
|
if ( m_hoveringOver != index )
|
||||||
{
|
{
|
||||||
emit updateIndex( m_hoveringOver );
|
PlayableItem* item = m_model->sourceModel()->itemFromIndex( m_model->mapToSource( index ) );
|
||||||
|
item->requestRepaint();
|
||||||
m_hoveringOver = index;
|
m_hoveringOver = index;
|
||||||
emit updateIndex( m_hoveringOver );
|
emit updateIndex( m_hoveringOver );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user