mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 20:28:14 +02:00
* AlbumView uses PlayableProxyModel now.
This commit is contained in:
@@ -74,7 +74,7 @@ AlbumView::AlbumView( QWidget* parent )
|
|||||||
setStyleSheet( "QListView { background-color: #323435; }" );
|
setStyleSheet( "QListView { background-color: #323435; }" );
|
||||||
|
|
||||||
setAutoFitItems( true );
|
setAutoFitItems( true );
|
||||||
setProxyModel( new AlbumProxyModel( this ) );
|
setProxyModel( new PlayableProxyModel( this ) );
|
||||||
|
|
||||||
/* m_overlay->setText( tr( "After you have scanned your music collection you will find your latest album additions right here." ) );
|
/* m_overlay->setText( tr( "After you have scanned your music collection you will find your latest album additions right here." ) );
|
||||||
m_overlay->setText( tr( "This collection doesn't have any recent albums." ) );*/
|
m_overlay->setText( tr( "This collection doesn't have any recent albums." ) );*/
|
||||||
@@ -95,7 +95,7 @@ AlbumView::~AlbumView()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
AlbumView::setProxyModel( AlbumProxyModel* model )
|
AlbumView::setProxyModel( PlayableProxyModel* model )
|
||||||
{
|
{
|
||||||
m_proxyModel = model;
|
m_proxyModel = model;
|
||||||
m_delegate = new AlbumItemDelegate( this, m_proxyModel );
|
m_delegate = new AlbumItemDelegate( this, m_proxyModel );
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include "ViewPage.h"
|
#include "ViewPage.h"
|
||||||
#include "AlbumProxyModel.h"
|
#include "PlayableProxyModel.h"
|
||||||
#include "widgets/OverlayWidget.h"
|
#include "widgets/OverlayWidget.h"
|
||||||
#include "DllMacro.h"
|
#include "DllMacro.h"
|
||||||
|
|
||||||
@@ -46,10 +46,10 @@ public:
|
|||||||
explicit AlbumView( QWidget* parent = 0 );
|
explicit AlbumView( QWidget* parent = 0 );
|
||||||
~AlbumView();
|
~AlbumView();
|
||||||
|
|
||||||
void setProxyModel( AlbumProxyModel* model );
|
void setProxyModel( PlayableProxyModel* model );
|
||||||
|
|
||||||
PlayableModel* model() const { return m_model; }
|
PlayableModel* model() const { return m_model; }
|
||||||
AlbumProxyModel* proxyModel() const { return m_proxyModel; }
|
PlayableProxyModel* proxyModel() const { return m_proxyModel; }
|
||||||
|
|
||||||
bool autoFitItems() const { return m_autoFitItems; }
|
bool autoFitItems() const { return m_autoFitItems; }
|
||||||
void setAutoFitItems( bool b ) { m_autoFitItems = b; }
|
void setAutoFitItems( bool b ) { m_autoFitItems = b; }
|
||||||
@@ -92,7 +92,7 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
PlayableModel* m_model;
|
PlayableModel* m_model;
|
||||||
AlbumProxyModel* m_proxyModel;
|
PlayableProxyModel* m_proxyModel;
|
||||||
AlbumItemDelegate* m_delegate;
|
AlbumItemDelegate* m_delegate;
|
||||||
AnimatedSpinner* m_loadingSpinner;
|
AnimatedSpinner* m_loadingSpinner;
|
||||||
OverlayWidget* m_overlay;
|
OverlayWidget* m_overlay;
|
||||||
|
Reference in New Issue
Block a user