OTHER: show playlist and selection playtimes in playlistwindow

This commit is contained in:
Thomas Frauendorfer 2009-01-07 02:53:59 +01:00
parent 7a0ea5a053
commit 9e1aa92d20
11 changed files with 159 additions and 15 deletions

View file

@ -115,6 +115,8 @@ class PlaylistModel : public QAbstractItemModel
void removeRows (QModelIndexList);
uint32_t getPlaytimeForSelection(const QModelIndexList &index_list);
protected:
XClient *m_client;
QList < unsigned int > m_plist;
@ -125,6 +127,7 @@ class PlaylistModel : public QAbstractItemModel
signals:
void entryMoved (const QModelIndex &, const QModelIndex &);
void currentPosChanged (QModelIndex);
void totalPlaytime (uint32_t seconds, bool isExact);
public slots:
void got_connection (XClient *);
@ -143,6 +146,8 @@ class PlaylistModel : public QAbstractItemModel
void getInfo (unsigned int id) const;
void emitTotalPlaytime ();
uint32_t m_current_pos;
bool m_isactive;