1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Can't initialize delegates with NULL parent or proxy.

This commit is contained in:
Christian Muehlhaeuser 2013-04-26 07:53:52 +02:00
parent 6b6b331fa8
commit a0a906b891
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class DLLEXPORT GridItemDelegate : public QStyledItemDelegate
Q_OBJECT
public:
GridItemDelegate( QAbstractItemView* parent = 0, PlayableProxyModel* proxy = 0 );
GridItemDelegate( QAbstractItemView* parent, PlayableProxyModel* proxy );
QSize itemSize() const { return m_itemSize; }
void setItemSize( const QSize& size ) { m_itemSize = size; }

View File

@ -43,10 +43,10 @@ public:
enum DisplayMode
{ LovedTracks, RecentlyPlayed, LatestAdditions, Inbox };
PlaylistLargeItemDelegate( DisplayMode mode, TrackView* parent = 0, PlayableProxyModel* proxy = 0 );
PlaylistLargeItemDelegate( DisplayMode mode, TrackView* parent, PlayableProxyModel* proxy );
virtual QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
protected:
void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;