Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/albums/plugin/AlbumItem.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 30 | public: | |||
---|---|---|---|---|---|
56 | /** | 56 | /** | ||
57 | * Setter to determine whether the item should show the Artist as well as the | 57 | * Setter to determine whether the item should show the Artist as well as the | ||
58 | * album name. Used for 'recent albums' listing. | 58 | * album name. Used for 'recent albums' listing. | ||
59 | */ | 59 | */ | ||
60 | void setShowArtist( const bool showArtist ); | 60 | void setShowArtist( const bool showArtist ); | ||
61 | 61 | | |||
62 | // overloaded from Meta::Observer | 62 | // overloaded from Meta::Observer | ||
63 | using Observer::metadataChanged; | 63 | using Observer::metadataChanged; | ||
64 | virtual void metadataChanged( Meta::AlbumPtr album ) Q_DECL_OVERRIDE; | 64 | virtual void metadataChanged( Meta::AlbumPtr album ) override; | ||
65 | 65 | | |||
66 | virtual int type() const Q_DECL_OVERRIDE; | 66 | virtual int type() const override; | ||
67 | 67 | | |||
68 | virtual bool operator<( const QStandardItem &other ) const Q_DECL_OVERRIDE; | 68 | virtual bool operator<( const QStandardItem &other ) const override; | ||
69 | 69 | | |||
70 | private Q_SLOTS: | 70 | private Q_SLOTS: | ||
71 | /** Updates the item after metadataChanged was called. | 71 | /** Updates the item after metadataChanged was called. | ||
72 | We need this indirection to get executed by the UI thread. | 72 | We need this indirection to get executed by the UI thread. | ||
73 | */ | 73 | */ | ||
74 | void update(); | 74 | void update(); | ||
75 | 75 | | |||
76 | private: | 76 | private: | ||
77 | Meta::AlbumPtr m_album; | 77 | Meta::AlbumPtr m_album; | ||
78 | int m_iconSize; | 78 | int m_iconSize; | ||
79 | bool m_showArtist; | 79 | bool m_showArtist; | ||
80 | }; | 80 | }; | ||
81 | 81 | | |||
82 | #endif // multiple inclusion guard | 82 | #endif // multiple inclusion guard |