diff options
author | Arno <arno@disconnect.de> | 2017-02-26 13:24:55 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-02-26 13:24:55 +0100 |
commit | 707853a339a804c9fe90e8ce5b7743c131b75dc1 (patch) | |
tree | a469d6064a8964cda4432400a80f8e10025d8fa6 /playerwidget.h | |
parent | 231aa131e6ed86dafa3ff94b4ca7b6a0aa4773e4 (diff) | |
download | BeetPlayer-707853a339a804c9fe90e8ce5b7743c131b75dc1.tar.gz BeetPlayer-707853a339a804c9fe90e8ce5b7743c131b75dc1.tar.bz2 BeetPlayer-707853a339a804c9fe90e8ce5b7743c131b75dc1.zip |
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.
Diffstat (limited to 'playerwidget.h')
-rw-r--r-- | playerwidget.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/playerwidget.h b/playerwidget.h index 5a6ff95..22cd2c5 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -3,7 +3,6 @@ #include <QWidget> -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 |