From 7e8cf45e8fde4170ed2df97ecb487dd31dfa1092 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 27 Feb 2017 02:38:49 +0100 Subject: Finally play something! Far from there, but it finally, actually plays songs! --- playerwidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'playerwidget.h') diff --git a/playerwidget.h b/playerwidget.h index 2837688..a321e4a 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -31,6 +31,7 @@ class PlayerWidget : public QWidget { void clearPlayList(); void shufflePlayList(); void randomPlay(); + void playCurrent(const QModelIndex &index); private: void setupGui(); @@ -40,6 +41,7 @@ class PlayerWidget : public QWidget { void populateByGenre(QStandardItem *parent, const QString &filter); void recurse(const QModelIndex &parent); void addSong(const QModelIndex &idx); + void play(const QString &fullPath); QLineEdit *mFilter; QMediaPlayer *mPlayer; BeetView *mView; -- cgit v1.2.3-70-g09d2