1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

* Fixed TWK-373: Auto-load covers, without waiting for the scrollbar to be triggered.

This commit is contained in:
Christian Muehlhaeuser 2011-08-14 01:33:12 +02:00
parent 28e18b66a6
commit 6dd1952ad3
3 changed files with 4 additions and 1 deletions

View File

@ -300,9 +300,9 @@ AlbumModel::addAlbums( const QList<Tomahawk::album_ptr>& albums )
}
emit endInsertRows();
qDebug() << rowCount( QModelIndex() );
}
void
AlbumModel::clear()
{

View File

@ -102,6 +102,7 @@ AlbumView::setAlbumModel( AlbumModel* model )
}
connect( m_proxyModel, SIGNAL( filterChanged( QString ) ), SLOT( onFilterChanged( QString ) ) );
connect( m_proxyModel, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onViewChanged() ) );
setAcceptDrops( false );
}

View File

@ -128,6 +128,7 @@ ArtistView::setTreeModel( TreeModel* model )
connect( m_model, SIGNAL( loadingFinished() ), m_loadingSpinner, SLOT( fadeOut() ) );
connect( m_proxyModel, SIGNAL( filterChanged( QString ) ), SLOT( onFilterChanged( QString ) ) );
connect( m_proxyModel, SIGNAL( rowsInserted( QModelIndex, int, int ) ), SLOT( onViewChanged() ) );
setAcceptDrops( false );
}
@ -166,6 +167,7 @@ ArtistView::keyPressEvent( QKeyEvent* event )
}
}
void
ArtistView::paintEvent( QPaintEvent* event )
{