mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Can't initialize delegates with NULL parent or proxy.
This commit is contained in:
@@ -43,7 +43,7 @@ class DLLEXPORT GridItemDelegate : public QStyledItemDelegate
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GridItemDelegate( QAbstractItemView* parent = 0, PlayableProxyModel* proxy = 0 );
|
GridItemDelegate( QAbstractItemView* parent, PlayableProxyModel* proxy );
|
||||||
|
|
||||||
QSize itemSize() const { return m_itemSize; }
|
QSize itemSize() const { return m_itemSize; }
|
||||||
void setItemSize( const QSize& size ) { m_itemSize = size; }
|
void setItemSize( const QSize& size ) { m_itemSize = size; }
|
||||||
|
@@ -43,7 +43,7 @@ public:
|
|||||||
enum DisplayMode
|
enum DisplayMode
|
||||||
{ LovedTracks, RecentlyPlayed, LatestAdditions, Inbox };
|
{ 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;
|
virtual QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user