From 707853a339a804c9fe90e8ce5b7743c131b75dc1 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 26 Feb 2017 13:24:55 +0100 Subject: Artwork and GUI modifications Added the necessary QActions. Except the ConfigAction they don't do anything yet, but they have nice icons :) I got rid of the menuBar(tm) and added a QToolBar to the center widget instead. --- playerwidget.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'playerwidget.h') diff --git a/playerwidget.h b/playerwidget.h index 5a6ff95..22cd2c5 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -3,7 +3,6 @@ #include -class QTreeView; class QStandardItemModel; class QStandardItem; class QLineEdit; @@ -11,7 +10,9 @@ class QLabel; class QSlider; class QTextEdit; class QMediaPlayer; +class QToolBar; class BeetPlayerProxy; +class BeetView; class PlayerWidget : public QWidget { Q_OBJECT @@ -27,19 +28,21 @@ class PlayerWidget : public QWidget { private: void setupGui(); + void createActions(); void populateByArtist(QStandardItem *parent, const QString &filter); void populateBySong(QStandardItem *parent, const QString &filter); void populateByGenre(QStandardItem *parent, const QString &filter); QLineEdit *mFilter; QMediaPlayer *mPlayer; - QTreeView *mView; + BeetView *mView; QStandardItemModel *mViewModel; QStandardItemModel *mSearchModel; QLabel *mNowPlayingL; QSlider *mSlider; QTextEdit *mCurrentTE; - QTreeView *mPlayListView; + BeetView *mPlayListView; QStandardItemModel *mPlayListModel; + QToolBar *mToolBar; }; #endif // PLAYERWIDGET_H -- cgit v1.2.3-70-g09d2