mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +02:00
* Queue's PlaylistView doesn't accept unplayable queries.
This commit is contained in:
@@ -47,6 +47,7 @@ QueueView::QueueView( AnimatedSplitter* parent )
|
|||||||
ui->queue->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
|
ui->queue->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
|
||||||
|
|
||||||
PlaylistModel* queueModel = new PlaylistModel( this );
|
PlaylistModel* queueModel = new PlaylistModel( this );
|
||||||
|
queueModel->setAcceptPlayableQueriesOnly( true );
|
||||||
ui->queue->proxyModel()->setStyle( PlayableProxyModel::Short );
|
ui->queue->proxyModel()->setStyle( PlayableProxyModel::Short );
|
||||||
queueModel->finishLoading();
|
queueModel->finishLoading();
|
||||||
ui->queue->setPlaylistModel( queueModel );
|
ui->queue->setPlaylistModel( queueModel );
|
||||||
|
@@ -56,7 +56,7 @@ public slots:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent( QEvent* e );
|
void changeEvent( QEvent* e );
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void updateLabel();
|
void updateLabel();
|
||||||
void onAnimationFinished();
|
void onAnimationFinished();
|
||||||
|
Reference in New Issue
Block a user