1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-25 10:23:40 +02:00

Don't lazily load additional query information in TrackView anymore.

This commit is contained in:
Christian Muehlhaeuser 2015-04-10 07:10:09 +02:00
parent 802a643834
commit 6d611bf718

View File

@ -87,9 +87,11 @@ TrackView::TrackView( QWidget* parent )
setContextMenuPolicy( Qt::CustomContextMenu );
m_timer.setInterval( SCROLL_TIMEOUT );
connect( verticalScrollBar(), SIGNAL( rangeChanged( int, int ) ), SLOT( onViewChanged() ) );
connect( verticalScrollBar(), SIGNAL( valueChanged( int ) ), SLOT( onViewChanged() ) );
connect( &m_timer, SIGNAL( timeout() ), SLOT( onScrollTimeout() ) );
// enable those connects if you want to enable lazily loading extra information for visible items
// connect( verticalScrollBar(), SIGNAL( rangeChanged( int, int ) ), SLOT( onViewChanged() ) );
// connect( verticalScrollBar(), SIGNAL( valueChanged( int ) ), SLOT( onViewChanged() ) );
// connect( &m_timer, SIGNAL( timeout() ), SLOT( onScrollTimeout() ) );
connect( this, SIGNAL( doubleClicked( QModelIndex ) ), SLOT( onItemActivated( QModelIndex ) ) );
connect( this, SIGNAL( customContextMenuRequested( const QPoint& ) ), SLOT( onCustomContextMenu( const QPoint& ) ) );