From 218b92da9eba832d8edd47a897eb3ee43d7291f5 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 21 Mar 2011 16:16:35 +0100 Subject: [PATCH] * Fixed Collection & Playlist's ViewPage pixmap. --- data/images/music-icon.png | Bin 0 -> 3945 bytes resources.qrc | 1 + src/libtomahawk/playlist/collectionview.h | 3 ++- src/libtomahawk/playlist/playlistview.h | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 data/images/music-icon.png diff --git a/data/images/music-icon.png b/data/images/music-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ebbb407d0bde6d465459666ecda5e5160846f5a6 GIT binary patch literal 3945 zcmV-v50>zWP)|1MW99I>-UhmqweqO&4C(YxgabC@9Ablhy&;csZ0!_9pEr_Dl2+=<+GzNh{ z{HQC`N~Kkk6e_jQiVzA&1QAmNNfoQzP|_xZ(s9YVO>*;cY$vv_-@D%RF89vPjL#n5 zN#exI59mna*&WZ^$9a6`JLlddr=Q|Jwp+YF#h? zZjh%b&zL;9JgIXf&SzIB0)1zi7U6R&N0`}ruxD*mEwdKmnoZfAXuL+CI@eLaIxGbl1_I*e~|Bi(SWh zs1(4b^C^JGes<5I=p$=qxe_;#W-Xu*!?|*xS&A%zgL?vK6+SPJ1qonj?ma36NvnSJ zH)WBHQV6H;(1TOt0LJRM6>4Hzz=WA?dgB^*&2y9U*)>z<2!(^m3k{A?$F-pOyF!a0 zA-K;Q(wdBQOKa(C2QRAs=S=|S{Mv{+7#91mmo~qCLL|pBMyRlW$t%6SCc}shJ=HrcZz?7|2`+GE-d?pa|WG&v%IQunpLs2m}h4 zPyZw^MFOB51EZGfpAwM?@Ndf*poPK{2mTHxVj7puo#FX*0p2%~ z@?vm%f5HVSOQR7Bp*aCS=0=GYaK#{rxdR4S0zlG^IMt;g-+@n+1(1QnmILXNV&R*Mgvha1b7Kq0>Ij_az`X%8LM4d2yj@zH}s&#&KI9|8%w0 zf*2#V7=gkg)!+jb3TBG5cO+%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?bs?JTVzr1zxe%P++>rJOG_kJ(vFJqnS-`?=#o|BH! zuIMP3#Goo2@M3o?u3@*#tsu9|sUT}urTyy=hux8Vr~Apvd(YWh*Ogn4><<-oU!~wT zO1CnX%_tR(H_b3*coSeBvKOYMd+^r|UKFps+oA3?Po}?uOB5!VhSC~N>DwR^_v=#K zx*V$95X~B%?gtQ*O#F2SS2csef&xCLDs0G4#wp}}x04AE~3u~AsK*#s>F3gB_4zzAQq zV3oyZ5RCZ${)ad**whp-uthLUn}kfk&U+r8MJJ)&;r`-W{IPa`R8a6?Ehi!&|M(drE01FL+=i|;voNGN$QXD8v zahDhM7Le--QJ~Q%(i~jrwaEBxP+bmBQP_gkpfh`%V*6PE@xcvf>M;L^dANYEARoUR zovQ&)>>gAj1iw8*Lh}sC$xeNK6#3Ed(Q*0XKLQK@XjEp6;e7<500000NkvXXu0mjf Duk3!1 literal 0 HcmV?d00001 diff --git a/resources.qrc b/resources.qrc index 231eb32b2..ddbc46b96 100644 --- a/resources.qrc +++ b/resources.qrc @@ -73,6 +73,7 @@ ./data/images/home.png ./data/images/back.png ./data/images/forward.png +./data/images/music-icon.png ./data/topbar-radiobuttons.css ./data/icons/tomahawk-icon-16x16.png ./data/icons/tomahawk-icon-32x32.png diff --git a/src/libtomahawk/playlist/collectionview.h b/src/libtomahawk/playlist/collectionview.h index 158e1a327..ea26fc5af 100644 --- a/src/libtomahawk/playlist/collectionview.h +++ b/src/libtomahawk/playlist/collectionview.h @@ -43,7 +43,8 @@ public: virtual QString title() const { return model()->title(); } virtual QString description() const { return model()->description(); } - + virtual QPixmap pixmap() const { return QPixmap( RESPATH "images/music-icon.png" ); } + virtual bool showModes() const { return true; } virtual bool jumpToCurrentTrack(); diff --git a/src/libtomahawk/playlist/playlistview.h b/src/libtomahawk/playlist/playlistview.h index 04c3fef05..3629099b1 100644 --- a/src/libtomahawk/playlist/playlistview.h +++ b/src/libtomahawk/playlist/playlistview.h @@ -43,9 +43,10 @@ public: virtual QWidget* widget() { return this; } virtual PlaylistInterface* playlistInterface() const { return proxyModel(); } - + virtual QString title() const { return playlistModel()->title(); } virtual QString description() const { return m_model->description(); } + virtual QPixmap pixmap() const { return QPixmap( RESPATH "images/playlist-icon.png" ); } virtual bool jumpToCurrentTrack();