From 7409f658745375e6cf7fc6fa4ceb0f81007a0956 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 1 Jun 2012 00:32:50 +0200 Subject: [PATCH] * AlbumItemDelegate uses PlayableProxyModel now. --- src/libtomahawk/playlist/AlbumItemDelegate.cpp | 4 ++-- src/libtomahawk/playlist/AlbumItemDelegate.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libtomahawk/playlist/AlbumItemDelegate.cpp b/src/libtomahawk/playlist/AlbumItemDelegate.cpp index 7899cc7be..fc3b32d7f 100644 --- a/src/libtomahawk/playlist/AlbumItemDelegate.cpp +++ b/src/libtomahawk/playlist/AlbumItemDelegate.cpp @@ -36,7 +36,7 @@ #include #include "playlist/PlayableItem.h" -#include "playlist/AlbumProxyModel.h" +#include "playlist/PlayableProxyModel.h" #include "AlbumView.h" #include "ViewManager.h" #include "utils/AnimatedSpinner.h" @@ -48,7 +48,7 @@ namespace { }; -AlbumItemDelegate::AlbumItemDelegate( QAbstractItemView* parent, AlbumProxyModel* proxy ) +AlbumItemDelegate::AlbumItemDelegate( QAbstractItemView* parent, PlayableProxyModel* proxy ) : QStyledItemDelegate( (QObject*)parent ) , m_view( parent ) , m_model( proxy ) diff --git a/src/libtomahawk/playlist/AlbumItemDelegate.h b/src/libtomahawk/playlist/AlbumItemDelegate.h index 1f38d76a9..81eace7cd 100644 --- a/src/libtomahawk/playlist/AlbumItemDelegate.h +++ b/src/libtomahawk/playlist/AlbumItemDelegate.h @@ -25,13 +25,13 @@ #include "DllMacro.h" -class QTimeLine; namespace Tomahawk { class PixmapDelegateFader; } class QEvent; -class AlbumProxyModel; +class QTimeLine; +class PlayableProxyModel; class ImageButton; class DLLEXPORT AlbumItemDelegate : public QStyledItemDelegate @@ -39,7 +39,7 @@ class DLLEXPORT AlbumItemDelegate : public QStyledItemDelegate Q_OBJECT public: - AlbumItemDelegate( QAbstractItemView* parent = 0, AlbumProxyModel* proxy = 0 ); + AlbumItemDelegate( QAbstractItemView* parent = 0, PlayableProxyModel* proxy = 0 ); protected: void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const; @@ -68,7 +68,7 @@ private: QTimeLine* createTimeline( QTimeLine::Direction direction ); QAbstractItemView* m_view; - AlbumProxyModel* m_model; + PlayableProxyModel* m_model; mutable QHash< QPersistentModelIndex, QRect > m_artistNameRects; mutable QHash< QPersistentModelIndex, QSharedPointer< Tomahawk::PixmapDelegateFader > > m_covers;