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:
parent
6b6b331fa8
commit
a0a906b891
@ -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; }
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user