~neon/juk/master

« back to all changes in this revision

Viewing changes to playlistitem.h

  • Committer: Michael Pyne
  • Date: 2018-02-03 21:20:56 UTC
  • Revision ID: git-v1:0dd849eced35be989c2251567505ec1e37ec8196
Bring back a visual indication of the playing item.

Turned out to be surprisingly more difficult than I thought, so
hopefully no additional bugs.

In particular some Phonon backends seem to insert a trip to a
StoppedState when changing the MediaObject's current source, so I had to
find a way around that to be able to call Playlist::stop() from
PlaylistCollection (which is what actually clears the visual indication
when playback stops).

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
     */
177
177
    virtual ~PlaylistItem();
178
178
 
179
 
    //virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
180
 
    //virtual void paintFocus(QPainter *, const QColorGroup &, const QRect &) {}
181
 
 
182
179
    virtual int compare(const QTreeWidgetItem *item, int column, bool ascending) const;
183
180
    int compare(const PlaylistItem *firstItem, const PlaylistItem *secondItem, int column, bool ascending) const;
184
181